Revision history [back]

click to hide/show revision 1
initial version

Need Clarification on "List users with a role"

According to "OpenStack Identity API v3" Doc :

I have tried to list users with a role URL: GET /roles/{role_id}/users This was resulting resource NotFound Error, below are the steps I have followed to achieve it.

Steps Followed:

1) Created a Project 2) Created a User associated the above created project to it

3) Now assigned the admin role to the user on the same project, as below curl -i http://<ip>:35357/v3/projects/228128d950be4ebd9c22830bad9ea284/users/09f03ece89d44eb9a8cca381cd2aa524/roles/9ac9bb8ac07c477fb908b8f1c13a4407 -X PUT -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token:<token>" HTTP/1.1 204 No Content Vary: X-Auth-Token Content-Length: 0 Date: Mon, 29 Apr 2013 15:33:28 GMT

4) Lastly, List users with a role curl -i http://<ip>:35357/v3/roles/9ac9bb8ac07c477fb908b8f1c13a4407/users -X GET -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: <token>" HTTP/1.1 404 Not Found Vary: X-Auth-Token Content-Type: application/json Content-Length: 93 Date: Mon, 29 Apr 2013 15:34:28 GMT

{"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

Can anyone help in resolving the issue, or please correct me if I am wrong in covering this use case

Thanks in advance, Harika