List user's groups

get
https://api.box.com/2.0
/users/:user_id/memberships

Retrieves all the groups for a user. The user making an API call must have admin permissions to inspect the enterprise's groups.

Request

application/json

Path Parameters

stringin pathrequired
12345

The ID of the user.

Query Parameters

integer / int64in queryoptional
10001000

The maximum number of items to return per page.

integer / int64in queryoptional
10000

The offset of the item at which to begin the response.

Response

application/jsonGroup memberships

Returns a collection of membership objects. If there are no memberships, an empty collection will be returned.

application/jsonClient error

An unexpected client error.

get
List user's groups
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -X GET https://api.box.com/2.0/users/12345/memberships \
     -H 'Authorization: Bearer <ACCESS_TOKEN>'