get /users/{id}/roles

Gets the roles for a user.

Returns the ordered list of role IDs for the specified user.

Path parameters

id (required)
The ID of the user.

Query parameters

offset (optional)
The number of entries to skip. Default is 0.
limit (optional)
The maximum number of entries to return. Default is 50.

Return type

GuidListResponse

Example data

Content-Type: application/json

{ "data" : { "totalItems" : 0, "offset" : 6, "limit" : 1, "items" : [ "00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000000" ] } }

Responses

200
The list of roles for the specified user.

400
One of the following errors has occurred:There is an invalid parameter in the query string.The specified ID is not a valid GUID.

404
The specified ID was not found.