BlAclPolicy - removePolicyPermission_1
BlAclPolicy - removePolicyPermission
Description :
This command removes a permission entry from an ACL policy. A permission consists of a role and an authorization. Important: This command removes a permission from the internal ACL that defines the policy, not from the ACL that controls access to this policy.
You must call this command with a valid authorization name, role name, and ACL policy name. Otherwise this command returns an error. Returns the DBKey of the ACL policy.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
name | String | Name of the ACL policy. |
roleName | String | Name of the role. |
authName | String | Name of the authorization. |
authTypeName | String | Name of the authorization type (system,nsh,nexec) |
Example
The following example shows how to remove a permission consisting of the role "SampleRole" and the authorization "Server.Read" from an ACL policy called "Test Policy".
Script
BlAclPolicy removePolicyPermission "Test Policy" SampleRole Server.Read system