JobGroup - addPermission
JobGroup - addPermission
Description :
This command adds a permission entry to the ACL controlling access to a group. A permission consists of a role and an authorization.
You must call this command with a valid authorization name, role name, and group name. Otherwise this command returns an error.
Valid authorizations for a job group are:
- JobFolder.Read
- JobFolder.Modify
- JobFolder.ModifyACL
- JobFolder.Delete
- JobFolder.Write
JobFolder.*
Returns the DBKey of the job group.Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
groupName | String | The fully qualified name of the group. |
roleName | String | Name of the role. |
authName | String | Name of the authorization. |
Example
The following example shows how to add a permission consisting of the role "SampleRole" and the authorization "JobFolder.Read" to a depot group called "/Sample Group".
Script
JobGroup addPermission "/Sample Group" SampleRole JobFolder.Read
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*