Ask Your Question

How to run keystone user-role-add in keystone V3 ?

asked 2016-04-07 14:10:23 -0600

jasonwg gravatar image

I need to run as admin say

keystone user-role-add --tenant_id=TENANT_ID  \
  --user=USER_ID  --role=ResellerAdmin_ID

Openstack doesn't replace keystone v2 CLI, Python SDK doesn't provide any information.
No idea how to manage ? I provided just a sample.
My experience is obviously limited , but I want back keystone CLI at least in meantime

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-04-07 16:35:33 -0600

Hi, @jasonwg.

OpenStack CLI has "all" keystone commands available, with different names and syntaxis.

To add a role to a user, you can manage it with the following command:

openstack role add --project TENANT_ID --user USER_ID ROLE_ID

An example:

openstack role add --project admin --user admin admin


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-04-07 14:10:23 -0600

Seen: 238 times

Last updated: Apr 07 '16