← Back to team overview

openstack team mailing list archive

Re: Listing roles for a user

 

Hi Dolph,

Just out of curiosity, why is the argument --user instead of --user-id?

Seems like it would be more informative and consistent if it was --user_id.
I actually wound up filing a bug for this at
https://bugs.launchpad.net/keystone/+bug/994744

Everett

On Fri, May 4, 2012 at 11:36 AM, Dolph Mathews <dolph.mathews@xxxxxxxxx>wrote:

> This actually just changed yesterday in
> https://github.com/openstack/python-keystoneclient/commit/e9ba370434537bcf1e53266e24397311d595b71e
>
>
> PRIOR to that commit:
>
> $ 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
>
>
> AFTER that commit (role-list has been simplified by introducing a new
> command):
>
> $ keystone help user-role-list
> usage: keystone user-role-list [--user <user-id>] [--tenant_id <tenant-id>]
>
> List roles 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
>
> -Dolph
>
> On Fri, May 4, 2012 at 10: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
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>

References