Ask Your Question

openstackuser's profile - activity

2014-03-19 10:46:34 -0500 received badge  Taxonomist
2013-11-09 16:02:53 -0500 received badge  Famous Question (source)
2013-09-20 08:17:10 -0500 received badge  Supporter (source)
2013-09-16 09:35:18 -0500 received badge  Notable Question (source)
2013-09-15 18:56:54 -0500 received badge  Popular Question (source)
2013-09-14 10:45:33 -0500 asked a question What is the curl equivalent to keystone user-role-add

I am trying to find out how to add a role to a user in openstack/keystone. I have been to the curl examples in openstack site but there doesn't seem to be enough information there to get the command right.

I have used the following command adding "role" as another parameter to adding a user. This seems to add an attribute "role" but I'm not sure it's considering it a real "role" :

curl -H 'X-Auth-Token: <token> ' -d '{"name":"test123","password":"secret.0","email":"test@test.com","role":"admin","enabled":true}' https://localhost:35357/v2.0/user</token>

Thanks in advance.