RBACRole - addAuthorizationToRoleByName
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 :
Name of the role to which you want to add an authorization.
Name of the authorization to add.
The following example allows the role BLAdmins to perform all server-related operations (create, read, modify).
blcli RBACRole addAuthorizationToRoleByName "BLAdmins" "Server.*"
The following example allows the role BLAdmins to create and modify Audit Jobs but not to delete them.
blcli RBACRole addAuthorizationToRoleByName "BLAdmins" "AuditJob.Create" blcli RBACRole addAuthorizationToRoleByName "BLAdmins" "AuditJob.Modify"