no CLI interface to find all of the tenants which a given user belongs to

Bug #1021708 reported by LaMont Jones
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Wishlist
Unassigned
python-openstackclient
Fix Released
High
Unassigned
keystone (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

There does not seem to be a CLI, nor does the python api appear to provide a way (other than iteration) to find all of the tenants to which a user belongs. I basically want the rough equivalent of the following sql:

SELECT tenant.* FROM tenant,user_tenant_membership WHERE user_tenant_membership.user_id = "$USERID" AND user_tenant_membersip.tenant_id = tenant.id;

Tags: canonistack
James Troup (elmo)
tags: added: canonistack
Changed in keystone (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Joseph Heck (heckj) wrote :

Thanks Lamont,

In the V2 API, you're quite correct. We're aiming to have this resolved with the V3 API - linking to blueprint

Changed in keystone:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Joseph Heck (heckj) wrote :

also linking to python-keystoneclient project since it's CLI related

Changed in python-keystoneclient:
importance: Undecided → High
status: New → Triaged
Changed in keystone:
importance: High → Wishlist
Revision history for this message
Dolph Mathews (dolph) wrote :

This is resolved with the introduction of the GET /v3/users/{user_id}/projects API in Grizzly (tenants are now known as projects).

Changed in keystone:
status: Triaged → Fix Committed
affects: python-keystoneclient → python-openstackclient
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Revision history for this message
Dean Troyer (dtroyer) wrote :

This was resolved in OpenStackClient with the completion of the Identity V3 commands in release 0.2.

Changed in python-openstackclient:
status: Triaged → Fix Released
James Page (james-page)
Changed in keystone (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.