OpenStack cli get list of usernames in project/s

asked 2020-03-09 16:53:10 -0500

eran101 gravatar image

In OpenStack Liberty with Keystone API v3, I need to get a list of users which are members of a project. Preferably, I would need this list for every project but not only the list of all users which I know to how get. I tried tried to add --names to the command but it wasn't recognised. I was only able to get a project id with usernames ID. It should be similar to the table in the link: https://ask.openstack.org/en/question/57710/what-is-the-equivalent-command-for-user-role-list-in-openstack-client-for-v3-api/?answer=109185#post-id-109185 (https://ask.openstack.org/en/question...) Note: I'm not allowed to upgrade OpenStack environment version.

edit retag flag offensive close merge delete

Comments

Try openstack role assignment list --names. If there is no names option, you need to perform the translation between names and IDs yourself. Not sure what's available in Liberty.

Bernd Bausch gravatar imageBernd Bausch ( 2020-03-10 00:59:31 -0500 )edit

I know. I'm trying to avoid this translation. I suspect the issue is the openstack cli client version.

eran101 gravatar imageeran101 ( 2020-03-10 17:48:13 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-03-27 07:13:06 -0500

Ajay_vishwakarma gravatar image

Hi, Please go through this link. Hope you can find your desired answer any many more other related commands too.

https://docs.openstack.org/keystone/pike/admin/cli-manage-projects-users-and-roles.html (https://docs.openstack.org/keystone/p...)

thanks

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2020-03-09 16:53:10 -0500

Seen: 47 times

Last updated: Mar 09