JobPolicy

JobPolicy encapsulates authorization rules for different groups with respect to job related operations

class DIRAC.WorkloadManagementSystem.Service.JobPolicy.JobPolicy(userDN, userGroup, allInfo=True)

Bases: object

__init__(userDN, userGroup, allInfo=True)
evaluateJobRights(jobList, right)

Get access rights to jobID for the user ownerDN/ownerGroup

getControlledUsers(right)

Get users and groups which jobs are subject to the given access right

getJobPolicy(jobOwner='', jobOwnerGroup='')

Get the job operations rights for a job owned by jobOwnerDN/jobOwnerGroup for a user with userDN/userGroup. Returns a dictionary of various operations rights

getUserRightsForJob(jobID, owner=None, group=None)

Get access rights to job with jobID for the user specified by userDN/userGroup