Add role to project:user
openstack role add --project <project> --user <user> <role>
--project
<project>
¶Include <project> (name or ID)
--user
<user>
¶Include <user> (name or ID)
role
¶Role to add to <project>:<user> (name or ID)
List role assignments
openstack role assignment list
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
[--user <user>]
[--project <project>]
[--names]
[--auth-user]
[--auth-project]
--sort-column
SORT_COLUMN
¶specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
--sort-ascending
¶sort the column(s) in ascending order
--sort-descending
¶sort the column(s) in descending order
--user
<user>
¶User to filter (name or ID)
--project
<project>
¶Project to filter (name or ID)
--names
¶Display names instead of IDs
--auth-user
¶Only list assignments for the authenticated user
--auth-project
¶Only list assignments for the project to which the authenticated user’s token is scoped
Create new role
openstack role create [--or-show] <name>
--or-show
¶Return existing role
name
¶New role name
Delete role(s)
openstack role delete <role> [<role> ...]
role
¶Role(s) to delete (name or ID)
List roles
openstack role list
[--sort-column SORT_COLUMN]
[--sort-ascending | --sort-descending]
--sort-column
SORT_COLUMN
¶specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
--sort-ascending
¶sort the column(s) in ascending order
--sort-descending
¶sort the column(s) in descending order
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.