Proposed fix: <a href="https://review.openstack.org/#change,5153">https://review.openstack.org/#change,5153</a><div><br></div><div>Usage:</div><div>    $ keystone role-list --user=<user-id> --tenant_id=<tenant-id><br>
<div><br><div class="gmail_quote">On Thu, Mar 8, 2012 at 10:01 PM, Deepak Garg <span dir="ltr"><<a href="mailto:deepakgarg.iitg@gmail.com">deepakgarg.iitg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have also been trying to find a cli to get a user's role in a<br>
particular tenant.<br>
I could not do that even with db tables mapping. Following are the fields<br>
in the tables:<br>
<br>
tenant table  -> tenant_Id, name, extras<br>
user_tenant_membership  -> user_id, tenant_id<br>
user table  -> id, name, extra<br>
role table -> id, name<br>
<br>
So when we bind a user to a tenant with a particular role. How do we<br>
store the data in the db so that its possible to verify it and may be<br>
retrieve it using cli (when it gets implemented) ?<br>
<br>
<br>
Thanks,<br>
Deepak<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Mar 9, 2012 at 7:18 AM, Jason Hedden <<a href="mailto:jhedden@mcs.anl.gov">jhedden@mcs.anl.gov</a>> wrote:<br>
><br>
><br>
> On Mar 8, 2012, at 6:12 PM, Andy Smith <<a href="mailto:andyster@gmail.com">andyster@gmail.com</a>> wrote:<br>
><br>
>><br>
>> I came across this while trying to list the roles assigned to users, which<br>
>> I still don't know how to do via the keystone client utility. Is this even<br>
>> possible?<br>
><br>
><br>
> Well, to clarify that statement a bit, roles exist on user-tenant pairs, so<br>
> you would list the roles for a user-tenant pair.<br>
><br>
><br>
> How?  I wasn't able to find a way using the keystone client tools.<br>
><br>
> Thanks,<br>
> Jason<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
> Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
> More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
><br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div></div></blockquote></div><br></div></div>