---
search:
  tags:
    - Roles & access
    - GET
seo:
  description: >-
    Returns role assignments for a user. Each item's id is the assignment ID
    used by DELETE… Reference for the GET /users/{id}/roles endpoint in the
    Fuxam API v4.
sidebar:
  label: List user role assignments
  badge: GET
title: List user role assignments
type: openapi-operation
---
Returns role assignments for a user. Each item's `id` is the assignment ID used by DELETE revoke. Scoped to your integration's institution via Basic Auth credentials.

`GET /users/{id}/roles`

**Responses**

- `200` — List of role assignments
- `401` — Unauthorized
- `404` — Not Found
- `429` — Too Many Requests — 1000 requests per minute per institution. Includes \`X-RateLimit-Limit\`, \`X-RateLimit-Remaining\`, \`X-RateLimit-Reset\` (ISO-8601), and \`Retry-After\` (seconds).
- `500` — Internal Server Error

Response example, 200:

```json
{
  "data": [
    {
      "id": "clxassign1234",
      "roleId": "clxrole1234",
      "role": {
        "id": "string",
        "name": "string",
        "color": "string"
      },
      "layerId": "string",
      "courseCode": "string",
      "cohortId": "string",
      "studyProgramId": "string",
      "moduleId": "string",
      "roomId": "string",
      "userGroupId": "string",
      "examId": "string",
      "createdAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true,
    "limit": 0
  },
  "meta": {
    "requestId": "req_1234567890_abc",
    "timestamp": "2026-06-02T07:00:00.000Z",
    "version": "v4",
    "watermark": "2019-08-24T14:15:22Z"
  }
}
```
