DRAFT - DRAFT - DRAFT - DRAFT - DRAFT - DRAFT - DRAFT - DRAFT -
| Verb | URI | Description |
|---|---|---|
| GET | v2.0/users/{userId}/roles?serviceId= |
List global roles for a user. |
Normal Response Code(s): 200, 203
Error Response Code(s): identityFault (400, 500, …), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), itemNotFound (404)
| Name | Style | Type | Description |
|---|---|---|---|
X-Auth-Token | Header | String | You need a valid admin token for access. The |
serviceId | Query | String | The |
userId | Template | String |
Example 3.21. List Global Roles for a User Response: XML
<?xml version="1.0" encoding="UTF-8"?> <roles xmlns="http://docs.openstack.org/identity/api/v2.0"> <role id="123" name="Admin" description="All Access" /> <role id="234" name="Guest" description="Guest Access" /> </roles>
Example 3.22. List Global Roles for a User Response: JSON
{
"roles":[{
"id": "123",
"name": "compute:admin",
"description": "Nova Administrator",
}
],
"roles_links":[]
}
