Ask Your Question

Revision history [back]

In v2.0 you can only add a role for a user within a tenant. Adding a role is a PUT on /v2.0/tenants/{tenantId}/users/{userId}/roles/OS-KSADM/{roleId} You will need to find the id values for user, tenant and the admin role.

curl -X PUT -H 'X-Auth-Token:<token> https://localhost:35357/v2.0/tenants/<tenantid>/users/<userid>/roles/OS-KSADM/<role-id>

In v2.0 you can only add a role for a user within a tenant. Adding a role is a PUT on /v2.0/tenants/{tenantId}/users/{userId}/roles/OS-KSADM/{roleId} You will need to find the id values for user, tenant and the admin role.

curl -X PUT -H 'X-Auth-Token:<token> 'X-Auth-Token:<token>' https://localhost:35357/v2.0/tenants/<tenantid>/users/<userid>/roles/OS-KSADM/<role-id>