Unsupported content

 

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

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 



Was this page helpful? Yes No Submitting... Thank you

Comments