---
title: "List all memberships of a user"
method: GET
path: "/api/v2/users/{userId}/roles"
tags: ["Users"]
---

# List all memberships of a user

`GET /api/v2/users/{userId}/roles`

> 🔑
>
> 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](https://360learning.readme.io/docs/pagination).

Lists all the memberships, sorted per group, of a specific user.

## Path parameters

- `userId` string, ObjectId, required

## Headers

- `360-api-version` 'v2.0', required

## Response `200`

Returns one page of 1000 user membership.

- Membership[]
  - `groupId` string, ObjectId, required — The unique ID of the group.
  - `role` 'admin' | 'analyst' | 'editor' | 'coach' | 'contributor' | 'learner' | 'owner' | 'userAdmin', required — The role that the user has in the group.

## Other responses

- `401` — The given access token is either missing, invalid, has expired, or has been revoked.
- `403` — The given access token does not have the required OAuth scope to execute the request.
- `404` — The given `userId` does not correspond to any existing user.
- `429` — The client has sent too many requests in a short amount of time.

---

[API](https://skmtc.dev/360learning/apis/core-api.md) · [All operations](https://skmtc.dev/360learning/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/360learning/core-api/revisions/94b691b0b72c/schema)
