Adds a role assignment to a user or group on the system, a domain, or a project
openstack role add
[--system <system> | --domain <domain> | --project <project>]
[--user <user> | --group <group>]
[--group-domain <group-domain>]
[--project-domain <project-domain>]
[--user-domain <user-domain>]
[--inherited]
[--role-domain <role-domain>]
<role>
Include <system> (all)
Include <domain> (name or ID)
Include <project> (name or ID)
Include <user> (name or ID)
Include <group> (name or ID)
Domain the group belongs to (name or ID). This can be used in case collisions between group names exist.
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
Domain the user belongs to (name or ID). This can be used in case collisions between user names exist.
Specifies if the role grant is inheritable to the sub projects
Domain the role belongs to (name or ID). This must be specified when the name of a domain specific role is used.
Role to add to <user> (name or ID)
List role assignments
openstack role assignment list
[--format-config-file FORMAT_CONFIG]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--effective]
[--role <role>]
[--role-domain <role-domain>]
[--names]
[--user <user>]
[--user-domain <user-domain>]
[--group <group>]
[--group-domain <group-domain>]
[--domain <domain> | --project <project> | --system <system>]
[--project-domain <project-domain>]
[--inherited]
[--auth-user]
[--auth-project]
Config file for the dict-to-csv formatter
specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
sort the column(s) in ascending order
sort the column(s) in descending order
Returns only effective role assignments
Role to filter (name or ID)
Domain the role belongs to (name or ID). This must be specified when the name of a domain specific role is used.
Display names instead of IDs
User to filter (name or ID)
Domain the user belongs to (name or ID). This can be used in case collisions between user names exist.
Group to filter (name or ID)
Domain the group belongs to (name or ID). This can be used in case collisions between group names exist.
Domain to filter (name or ID)
Project to filter (name or ID)
Filter based on system role assignments
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
Specifies if the role grant is inheritable to the sub projects
Only list assignments for the authenticated user
Only list assignments for the project to which the authenticated user’s token is scoped
Create new role
openstack role create
[--description <description>]
[--domain <domain>]
[--or-show]
[--immutable | --no-immutable]
<role-name>
Add description about the role
Domain the role belongs to (name or ID)
Return existing role
Make resource immutable. An immutable project may not be deleted or modified except to remove the immutable flag
Make resource mutable (default)
New role name
Delete role(s)
openstack role delete [--domain <domain>] <role> [<role> ...]
Domain the role belongs to (name or ID)
Role(s) to delete (name or ID)
List roles
openstack role list
[--format-config-file FORMAT_CONFIG]
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--domain <domain>]
Config file for the dict-to-csv formatter
specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
sort the column(s) in ascending order
sort the column(s) in descending order
Include <domain> (name or ID)
Removes a role assignment from system/domain/project : user/group
openstack role remove
[--system <system> | --domain <domain> | --project <project>]
[--user <user> | --group <group>]
[--group-domain <group-domain>]
[--project-domain <project-domain>]
[--user-domain <user-domain>]
[--inherited]
[--role-domain <role-domain>]
<role>
Include <system> (all)
Include <domain> (name or ID)
Include <project> (name or ID)
Include <user> (name or ID)
Include <group> (name or ID)
Domain the group belongs to (name or ID). This can be used in case collisions between group names exist.
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
Domain the user belongs to (name or ID). This can be used in case collisions between user names exist.
Specifies if the role grant is inheritable to the sub projects
Domain the role belongs to (name or ID). This must be specified when the name of a domain specific role is used.
Role to remove (name or ID)
Set role properties
openstack role set
[--description <description>]
[--domain <domain>]
[--name <name>]
[--immutable | --no-immutable]
<role>
Add description about the role
Domain the role belongs to (name or ID)
Set role name
Make resource immutable. An immutable project may not be deleted or modified except to remove the immutable flag
Make resource mutable (default)
Role to modify (name or ID)
Display role details
openstack role show [--domain <domain>] <role>
Domain the role belongs to (name or ID)
Role to display (name or ID)
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.