← Back to team overview

openstack team mailing list archive

回覆: can one user in multiple tenants?

 

thanks Adam
Peter.

-------- 原有訊息 --------
由: Adam Young <ayoung@xxxxxxxxxx>
日期: 2013-07-18  23:50  (GMT+08:00)
至: Peter Cheung <mcheung63@xxxxxxxxxxx>
抄送: openstack@xxxxxxxxxxxxxxxxxxx
主題: Re: [Openstack] can one user in multiple tenants?

The CLI keystone user-role-list should be returning that, so long as you
don't filter by tenant.

>From an API perspective, you would call

/users/{user_id}/roles

http://docs.openstack.org/developer/keystone/api_curl_examples.html#get-users-user-id-roles


On 07/18/2013 04:04 AM, Peter Cheung wrote:
> I understand now, the tenant is keystone user-get is the default
> tenant ID. User can have many roles in different tenant.
> But we don't have a command to list out all roles among all tenant for
> a specific user.
>
> take a look this screen:
> http://peter.kingofcoders.com/?p=779
>
>
>
> ------------------------------------------------------------------------
> Date: Thu, 18 Jul 2013 00:15:52 -0400
> From: ayoung@xxxxxxxxxx
> To: openstack@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Openstack] can one user in multiple tenants?
>
> On 07/18/2013 12:12 AM, Peter Cheung wrote:
>
>     Hi all
>     1) can one user in multiple tenants? I think yes, but when i
>     "keystone user-get", i can see only one tenant field.
>
> User has a role assignemnt. The default role is Member, and they can
> have this role in multiple tenants. You are seeing the default tenant
> field.
>
>     2) how can i assign another tenant to a specific user? which
>     command can do that?
>
> keystone user-role-add
>
>
>
>     Thanks
>     from Peter
>
>
>     _______________________________________________
>     Mailing list: https://launchpad.net/~openstack <https://launchpad.net/%7Eopenstack>
>     Post to     : openstack@xxxxxxxxxxxxxxxxxxx <mailto:openstack@xxxxxxxxxxxxxxxxxxx>
>     Unsubscribe : https://launchpad.net/~openstack <https://launchpad.net/%7Eopenstack>
>     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