rhpctl grant role

Use the rhpctl grant role command to grant a role to a client user or to another role.

Syntax

rhpctl grant role {–role role_name {-user user_name [-client cluster_name]
   | -grantee role_name}}
   | {[-client cluster_name] [-maproles role=user_name[+user_name...]
   [,role=user_name[+user_name...]...]}

Parameters

Table F-14 rhpctl grant role Parameters

Parameter Description
-role role_name

Specify the name of the role that you want to grant clients or users.

-user user_name
-client cluster_name

Specify the name of a user and, optionally, a client cluster to which you want to grant a role. The user name that you specify must be in the form of user@rhpclient, where rhpclient is the name of the Rapid Home Provisioning Client.

-grantee role_name

Use this parameter to specify a role to which you want to grant another role.

[-client client_name]
-maproles role=
 user_name[+user_name...]

You can map either built-in roles or roles that you have defined to specific users. Use a plus sign (+) to map more than one user to a specific role. Separate additional role/user pairs with commas. Optionally, you can also specify a client cluster.

Example

The following example grants a role, ABC, to another role, XYZ:

$ rhpctl grant role -role ABC -grantee XYZ