Identity v2, v3
Add role assignment to a user or group in a project or domain
os role add
--domain <domain> | --project <project> [--project-domain <project-domain>]
--user <user> [--user-domain <user-domain>] | --group <group> [--group-domain <group-domain>]
--role-domain <role-domain>
--inherited
<role>
Include <domain> (name or ID)
New in version 3.
Include <project> (name or ID)
Include <user> (name or ID)
Include <group> (name or ID)
New in version 3.
Domain the user belongs to (name or ID). This can be used in case collisions between user names exist.
New in version 3.
Domain the group belongs to (name or ID). This can be used in case collisions between group names exist.
New in version 3.
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
New in version 3.
Specifies if the role grant is inheritable to the sub projects.
New in version 3.
Domain the role belongs to (name or ID). This must be specified when the name of a domain specific role is used.
New in version 3.
Role to add to <project>:<user> (name or ID)
Create new role
os role create
[--or-show]
[--domain <domain>]
<name>
Domain the role belongs to (name or ID).
New in version 3.
Return existing role
If the role already exists return the existing role data and do not fail.
New role name
Delete role(s)
os role delete
<role> [<role> ...]
[--domain <domain>]
Role to delete (name or ID)
Domain the role belongs to (name or ID).
New in version 3.
List roles
os role list
--domain <domain> | --project <project> [--project-domain <project-domain>]
--user <user> [--user-domain <user-domain>] | --group <group> [--group-domain <group-domain>]
--inherited
Filter roles by <domain> (name or ID)
(Deprecated if being used to list assignments in conjunction with the --user <user>, option, please use role assignment list instead)
Filter roles by <project> (name or ID)
(Deprecated, please use role assignment list instead)
Filter roles by <user> (name or ID)
(Deprecated, please use role assignment list instead)
Filter roles by <group> (name or ID)
(Deprecated, please use role assignment list instead)
Domain the user belongs to (name or ID). This can be used in case collisions between user names exist.
(Deprecated, please use role assignment list instead)
New in version 3.
Domain the group belongs to (name or ID). This can be used in case collisions between group names exist.
(Deprecated, please use role assignment list instead)
New in version 3.
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
(Deprecated, please use role assignment list instead)
New in version 3.
Specifies if the role grant is inheritable to the sub projects.
(Deprecated, please use role assignment list instead)
New in version 3.
Remove role assignment from domain/project : user/group
os role remove
--domain <domain> | --project <project> [--project-domain <project-domain>]
--user <user> [--user-domain <user-domain>] | --group <group> [--group-domain <group-domain>]
--role-domain <role-domain>
--inherited
<role>
Include <domain> (name or ID)
New in version 3.
Include <project> (name or ID)
Include <user> (name or ID)
Include <group> (name or ID)
New in version 3.
Domain the user belongs to (name or ID). This can be used in case collisions between user names exist.
New in version 3.
Domain the group belongs to (name or ID). This can be used in case collisions between group names exist.
New in version 3.
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
New in version 3.
Specifies if the role grant is inheritable to the sub projects.
New in version 3.
Domain the role belongs to (name or ID). This must be specified when the name of a domain specific role is used.
New in version 3.
Role to remove (name or ID)