Re: [Openstack] python keystone v3 api coding question

2014-10-14 Thread Michael Hearn
Thanks for the info. Looks like I need to update my current version of the keystone v3 api so I can use role_assignments On Mon, Oct 13, 2014 at 11:04 PM, Dean Troyer wrote: > On Mon, Oct 13, 2014 at 3:28 PM, Priti Desai > wrote: > >> I don’t know about Keystone Client V3 API but OpenStack cli

Re: [Openstack] python keystone v3 api coding question

2014-10-13 Thread Dean Troyer
On Mon, Oct 13, 2014 at 3:28 PM, Priti Desai wrote: > I don’t know about Keystone Client V3 API but OpenStack client has a way > to get the list of users and their roles under a project: > > *openstack role assignment list --project=project-a* > This is implemented in the v3 API with role_assign

Re: [Openstack] python keystone v3 api coding question

2014-10-13 Thread Priti Desai
Hi Michael, I don’t know about Keystone Client V3 API but OpenStack client has a way to get the list of users and their roles under a project: openstack role assignment list --project=project-a This should produce a list of users and their roles. Cheers Priti __

[Openstack] python keystone v3 api coding question

2014-10-13 Thread Michael Hearn
Guys I have some python code that utilizes the v3 keystone api. Part of it will remove a user/role from project and as long as there are no other user/role assignments it'll nuke the project. Question: Is there a cleaner way to check project membership other than looping through a list of all use