List global roles for user

 
MethodURIDescription
GET/v2.0/users/{userId}/roles​{?serviceId,​marker,​limit}

Lists global roles for a specified user.

Normal response codes: 200, 203

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

 Request

This table shows the header parameters for the list global roles for user request:

NameTypeDescription

X-Auth-Token

​String

(Required)

A valid authentication token for an administrative user.

This table shows the URI parameters for the list global roles for user request:

NameTypeDescription

{userId}

​String

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

This operation does not require a request body.

 Response
 

Example 4.11. List global roles for user: JSON response

{
   "roles":[
      {
         "id":"8341d3603a1d4d5985bff09f10704d4d",
         "name":"service"
      },
      {
         "id":"2e66d57df76946fdbe034bc4da6fdec0",
         "name":"admin"
      }
   ]
}

 

Example 4.12. List global roles for user: XML response

<?xml version="1.0" encoding="UTF-8"?>
<roles xmlns="http://docs.openstack.org/identity/api/v2.0">
    <role id="8341d3603a1d4d5985bff09f10704d4d" name="service"/>
    <role id="2e66d57df76946fdbe034bc4da6fdec0" name="admin"/>
</roles>

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

loading table of contents...