get /users/{id}/groups
Gets a list of groups.
Returns the list of groups for the user specified by the id
parameter.
Path parameters
- id (required)
- The ID of the user to return groups for.
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
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
- Success. A list of the groups for the specified user is returned.
- 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.