RBACRole - addAuthorizationToRoleByName_1
RBACRole - addAuthorizationToRoleByName
Description :
This command adds an authorization directly to a role (without using an authorization profile). Authorizations define what operations the role is allowed to perform. For example, the authorization "DeployJob.Execute" allows a role to execute Deploy Jobs.
A related command is removeAuthorizationFromRoleByName .
For a complete list of authorizations, see the BMC BladeLogic Users Guide. This command returns the name of the role to which the authorization was added.
Return type : String
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
roleName | String | Name of the role to which you want to add an authorization. |
authName | String | Name of the authorization to add. |
authTypeName | String | name of the authorization type (system,nsh,nexec) |
Example
The following example allows the role BLAdmins to perform the nsh command grep.
Script
blcli RBACRole addAuthorizationToRoleByName "BLAdmins" "grep" "nsh"