JobPolicy

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

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

Bases: object

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

Get access rights to jobID for the user owner/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 jobOwner/jobOwnerGroup for a user with user/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