DepotObject - addPermission
DepotObject - addPermission
Description :
This command adds a permission entry to the ACL controlling access to a depot object. A permission consists of a role and authorization.
You must call this command with a valid authorization name, role name, and depot object. Otherwise this command returns an error. Returns the DBKey of the depot group.
Return type : DBKey
Command Input :
Variable Name |
Variable Type |
Description |
---|---|---|
depotObjectDbKey |
DBKey |
DBKey of the depot object. |
roleName |
String |
Name of the role. |
authName |
String |
Name of the authorization. |
Example
The following example shows how to add the permission consisting of the role "SampleRole" and the authorization "BlPackage.Read" to a package with the DBKey SDepotObjectKey:1-1.
Script
DepotObject addPermission SDepotObjectKey:1-1 SampleRole BlPackage.Read
Comments
Log in or register to comment.