Impersonation - addApPermission
Impersonation - addApPermission
Description :
This adds a permission (role,authorization) to an Automation Principal. This command returns the ACL object.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
apName | String | Name of the automation principal. |
roleName | String | Name of the role. |
authName | String | Name of the authorization. |
Example
The following example gives the role SyncAdmins permission to read an automation principal with the name DirAdmin.
Script
Impersonation addApPermission DirAdmin SyncAdmins AutomationPrincipal.Read
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*