Creates role-based access permissions (RBAC) associated with a role.
The default for action is accept. The default for operation is read-write.
Global configuration mode
For each role that you create, you define one or more rules. Each account is associated with one—and only one—role.
When you create a rule, the index, role, and command operands are mandatory; the action and operation operands are optional.
The maximum number of rules is 512.
When you modify a rule, all operands except index and role are optional.
Enter no rule index to remove the specified rule.
The following example creates rules enabling the NetworkSecurityAdmin role to create user accounts.
device# configure terminal device(config)# rule 150 action accept operation read-write role NetworkSecurityAdmin command config device(config)# rule 155 action accept operation read-write role NetworkSecurityAdmin command username
The following example deletes a rule.
device# configure terminal device(config)# no rule 155