Method | URI | Description |
---|---|---|
GET | /v2.0/users/{user_id}/roles | Lists global roles for a specified user. Excludes tenant roles. |
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)
This table shows the header parameters for the list user global roles request:
Name | Type | Description |
---|---|---|
| String (Required) | A valid authentication token for an administrative user. |
This table shows the URI parameters for the list user global roles request:
Name | Type | Description |
---|---|---|
| String | The user ID. |
This operation does not require a request body.
Example 3.13. List user global roles: JSON response
{ "roles":[{ "id":"123", "name":"compute:admin", "description":"Nova Administrator" } ], "roles_links":[] }
Example 3.14. List user global roles: XML response
<?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>