Is it possible to ge the list of tenants a user is associated with in OpenStack using the keystoneclient?

ldeluca picture ldeluca · Mar 20, 2013 · Viewed 14.1k times · Source

Anyone know a way to get the list of tenants for a user? I know I can get the users for a tenant and I can get a list of all the tenants so technically I could loop through all the tenants and look for a specific user but that seems like a cumbersome approach.

Answer

Manu picture Manu · Aug 22, 2014

No idea with the keystone-client but it's possible with the version 3 of the keystone API :

GET /v3/users/['USER_ID']/projects