DepotObject - removePermission
DepotObject - removePermission
Description :
This command removes a permission entry from the ACL controlling access to a depot object. A permission consists of a role and an 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 object.
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 remove the permission consisting of the role "SampleRole" the the authorization "BlPackage.Read" from a package with the DBKey SDepotObjectKey:1-1.
Script
DepotObject removePermission SDepotObjectKey:1-1 SampleRole BlPackage.Read
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*