Group memberships
List user's groups
Retrieves all the groups for a user. Only members of this group or users with admin-level permissions will be able to use this API.
get/users/{user_id}/memberships
Path parameters
user_idstring required
The ID of the user.
Query parameters
limitinteger
The maximum number of items to return per page.
offsetinteger
The offset of the item at which to begin the response.
Queries with offset parameter value exceeding 10000 will be rejected with a 400 response.
Response
Returns a collection of membership objects. If there are no memberships, an empty collection will be returned.
Example response
{
"total_count": 5000,
"limit": 1000,
"offset": 2000,
"order": [
{
"by": "type",
"direction": "ASC"
}
],
"entries": [
{
"id": "11446498",
"type": "group_membership",
"user": {
"id": "11446498",
"type": "user",
"name": "Aaron Levie",
"login": "ceo@example.com"
},
"group": {
"id": "11446498",
"type": "group",
"name": "Support",
"group_type": "managed_group"
},
"role": "member",
"created_at": "2012-12-12T10:53:43-08:00",
"modified_at": "2012-12-12T10:53:43-08:00"
}
]
}