v1
latestOpenAPI 3.1.02026-08-04164270844.7 KBUsers
List all memberships of a user
🔑
Required OAuth scope: users:read.
📖
This endpoint is paginated with a page size of 1,000 user membership. For more information, see the Pagination guide.
Lists all the memberships, sorted per group, of a specific user.
get/api/v2/users/{userId}/roles
Path parameters
userIdstring ObjectId required
Example:507f1f77bcf86cd799439011
The unique ID of the user.
Headers
360-api-version'v2.0' required
The version of the API.
Response
Returns one page of 1000 user membership.
Example response
[
{
"groupId": "507f1f77bcf86cd799439011"
}
]