(Click to open topic with navigation)
To modify a role, use the command gchrole:
gchrole [-d description] [--add-user(s) user_name,...]... [--add-action(s) object_name->action_name[{instance_name}],...]... [--del-user(s) user_name,...]... [--del-action(s) object_name->action_name[{instance_name}],...]... [--debug] [--site site_name] [--help] [--man] [--quiet] [--verbose] [--version] {[-r] role_name
Users may be added to a role or removed from a role. Actions also may be added to a role or removed from a role. When specifying actions, the instance will default to a value of ANY.
Example 16-4: Adding a user to a role
Let's add dave to our new Manager role:
$ gchrole --add-user dave -r Manager
Successfully added 1 user
Example 16-5: Associating an action with a role
Allow the Manager to change role responsibilities:
$ gchrole --add-action "RoleAction->ANY" Manager -v
Successfully added 1 action
Related topics