How to update a user`s tenant_id

Asked by koolhead17

Hi,
I created a user with providing wrong/non-existing tenant_id and keystone accepted it.

>> Is it a Bug?

Command i used is :-

# keystone user-create --name=admin --tenant_id bfca3bfe0358484cbbec6ebb0764ef62 --pass=secret --<email address hidden> --enabled true

I need to update my user by providing it with correct tenant id.

I used command :-

# keystone user-update --name=admin --tenant_name demo 71d36d2c83f34bfd9a6bdf9b26ab24ac
 I got error for passing wrong parameters.

but when i passed parameters for changing e-mail address
# keystone user-update --name=admin --<email address hidden> 71d36d2c83f34bfd9a6bdf9b26ab24ac
User has been updated.

It works.

What am i missing?

Am using keystone 2012.1~rc1~20120 on ubuntu 12.04

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Identity (keystone) Edit question
Assignee:
No assignee Edit question
Solved by:
Joe T
Solved:
Last query:
Last reply:
Revision history for this message
Best Joe T (joe-topjian-v) said :
#1

Hello,

I have opened a bug report that is somewhat related to this question: Bug #973642.

Regarding managing a user's tenant membership, I would recommend not using the tenant_id argument when creating the user. Instead, create the user and then user user-role-add command to apply a role to a user in a tenant. This will add a user to the tenant's membership.

Thanks,
Joe

Revision history for this message
koolhead17 (koolhead17) said :
#2

Thanks Joe T, that solved my question.