OpenStack: User

CLI

# change user password
openstack user set --password pass123 user1
 
# list user (for domain)
openstack --os-cloud=dev-admin user list --domain my_dom_1
 
openstack user list
openstack user show USER_ID
openstack domain show DOMAIN_ID
openstack project list --user USER_ID

Role

# list
openstack role assignment list --names --user ${USER_ID}
 
# add
openstack role add --user ${USER_ID} --project ${PROJECT_ID} creator
 
# remove
openstack role remove --user ${USER_ID} --project ${PROJECT_ID} admin

Get unpriviliged user ID

# get unpriviliged user project ID
openstack project list -c id -f value
 
# as admin
openstack user list --project ${PROJECT_ID}

roles

# show user roles
MGMT_USER_ID=b912ba4325fbb6c18483602245f9b515b
openstack role assignment list --user ${MGMT_USER_ID} --names