[Openstack] Listing roles for a user

Kevin Jackson kevin at linuxservices.co.uk
Fri May 4 19:27:48 UTC 2012


Thanks all - that did the trick.

Kev

On 4 May 2012 18:39, Everett Toews <everett.toews at cybera.ca> 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 at i-000004b4:~$ keystone user-list
> ...
> | 906b0dc3d4464f2b88b47643f1c27297 | True    | demo at example.com   | 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 at linuxservices.co.uk>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 at lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>


-- 
Kevin Jackson
@itarchitectkev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120504/c91470ef/attachment.html>


More information about the Openstack mailing list