error in keystone v3 while fetching user list

Asked by Viral Patadiya

I am following keystone ocata installation guide https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-install.html

Post installation, I am able to get the user list using openstack user list command.

openstack --os-auth-url="http://keystone:5000/v3" --os-identity-api-version="3" --os-password="mypwd123" --os-project-domain-name="Default" --os-project-name="admin" --os-username="admin" --os-user-domain-name="Default" user list

Outputs the User list properly.

But when I take auth token with below command :

curl -si -d '{"auth": {"identity": {"methods": ["password" ],"password": {"user": {"domain": {"id": "default" },"name": "admin","password": "mypwd123" }}}}}' -H "Content-type: application/json" http://keystone:5000/v3/auth/tokens

and then use the token from the output of above command in below command to list the users:

curl -s -H "X-Auth-Token: gAAAAABZlAN0NPibgBLcUW3aAcgNYIGaRH98M7w6b4tRliXC4LQB4dr5cGxTJmF5-iKvY2U_AU3c71uJUqgaQJP-iyURCBzBqYHlHtTGqofzzVndVncBRU5z4iLbArBdbJCI2Wd-1No9C0cq4iWB6RBNa9wqXWm-Gw" "http://keystone:5000/v3/users" | python -mjson.tool

Returns :

{ "error": { "code": 403, "message": "You are not authorized to perform the requested action: identity:list_users.", "title": "Forbidden" } }

Any help would be appreciated.

Thanks,

Viral

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Identity (keystone) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Viral Patadiya (viralpatadiya) said :
#2

Hi,

Any help on the issue would be highly appreciated.

Thanks,

Viral

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Junien F (axino) said :
#4
Revision history for this message
Junien F (axino) said :
#5

Answered

Can you help with this problem?

Provide an answer of your own, or ask Viral Patadiya for more information if necessary.

To post a message you must log in.