Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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":"","role":"admin","enabled":true}' https://localhost:35357/v2.0/user

Thanks in advance.