You add a rule to a role by entering the rule command with appropriate options. Any updates to the authorization rules will not apply to the active sessions of the users. The changes are applied only when users log out from the current session and log in to a new session.
The following example creates the rules that authorize the security administrator role to create and manage user accounts.
device# configure terminal
device(config)# rule 150 action accept operation read-write role SecAdminUser command config
device(config)# rule 155 action accept operation read-write role SecAdminUser command username
device# configure terminal Entering configuration mode terminal Current configuration users: admin console (cli from 127.0.0.1) on since 2010-08-16 18:35:05 terminal mode device(config)# username testuser role user password (<string>): ********