Add global role to user

 
MethodURIDescription
PUT/v2.0/users/{userId}/roles/OS-KSADM/{roleId}

Adds a specific global role to a user.

Normal response codes: 201

Error response codes: identityFault (400, 500, ), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), badMediaType (415), itemNotFound (404)

 Request

This table shows the header parameters for the add global role to user request:

NameTypeDescription

X-Auth-Token

​String

(Required)

A valid authentication token for an administrative user.

This table shows the URI parameters for the add global role to user request:

NameTypeDescription

{userId}

​String

The ID of the user for which you want to perform the request.

{roleId}

​Int

The ID of the role that you want to add or delete.

This operation does not require a request body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page

loading table of contents...