← Back to team overview

openstack team mailing list archive

Re: Listing roles for a user

 

Thanks all - that did the trick.

Kev

On 4 May 2012 18:39, Everett Toews <everett.toews@xxxxxxxxx> wrote:

> keystone help role-list
> usage: keystone role-list [--user <user-id>] [--tenant_id <tenant-id>]
>
> List all roles, or only those granted to a user.
>
> Optional arguments:
>   --user <user-id>      List roles granted to a user
>   --tenant_id <tenant-id>     List roles granted on a tenant
>
> $ keystone tenant-list
> ...
> | bebf7c9c4d1f41d6ba6fb3ba10855b5e | demo               | True    |
> ...
>
> ubuntu@i-000004b4:~$ keystone user-list
> ...
> | 906b0dc3d4464f2b88b47643f1c27297 | True    | demo@xxxxxxxxxxx   | demo
>   |
> ...
>
> $ keystone role-list --user=906b0dc3d4464f2b88b47643f1c27297
> --tenant_id=bebf7c9c4d1f41d6ba6fb3ba10855b5e
> ...
> | bbef7b9c03e84507904b352e876f28d4 | Member      |
> | cad6d3b00ce344fbad9857a413c1f3de | anotherrole |
> ...
>
> The parameter --user in role-list should really be "--user_id".
>
> Everett
>
> On Fri, May 4, 2012 at 9:36 AM, Kevin Jackson <kevin@xxxxxxxxxxxxxxxxxxx>wrote:
>
>> Hello everyone,
>> Quick Q: As an administrator how can I list the roles for a given user
>> with the keystone client?
>> I see this teasing option - but I can only list all roles unless I auth
>> with the user's details...
>>
>> role-list           List all roles, or only those granted to a user.
>>
>> Cheers,
>>
>> Kev
>> --
>> Kevin Jackson
>> @itarchitectkev
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>


-- 
Kevin Jackson
@itarchitectkev

References