Ask Your Question
0

Api Request returns User roles not supported: tenant ID required

asked 2014-06-30 06:17:10 -0500

Hoots gravatar image

updated 2014-06-30 07:29:38 -0500

I am making the following api call...

 curl -H "Accept: application/xml" -H "X-Auth-Token: {my api key taken from keystone.conf}" http://localhost:35357/v2.0/users/{userId}/roles

which is returning the following error...

<error xmlns="http://docs.openstack.org/identity/api/v2.0" message="User roles not supported: tenant ID required" code="501" title="Not Implemented"/>

Am I doing something wrong or has this been deprecated or something? The documentation says I should be able to do this to get a user's global roles, although I'm not sure what the difference between global and non global is other than semantics!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-06-30 10:43:22 -0500

updated 2014-06-30 14:17:22 -0500

User roles are not supported. You need to pass tenantId.

Try this curl -H "Accept: application/xml" -H "X-Auth-Token: {my api key taken from keystone.conf}" http://localhost:35357/v2.0//tenants/...

It is not supported in the current version. It would have been supported pre "Diablo" which is too old.

edit flag offensive delete link more

Comments

That's what the message says. The documentation says I should be able to do the original call to get the global roles... http://developer.openstack.org/api-ref-identity-v2.html Has it therefore been deprecated with the documentation wrong and I'm not allowed to do that or am I missing something?

Hoots ( 2014-06-30 11:17:10 -0500 )edit

Your Answer

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

Add Answer

[hide preview]

Get to know Ask OpenStack

Resources for moderators

Question Tools

Follow
1 follower

Stats

Asked: 2014-06-30 06:17:10 -0500

Seen: 319 times

Last updated: Jun 30 '14