---
title: "Get roles for a user in an organization"
method: GET
path: "/api/organizations/{id}/users/{userId}/roles"
tags: ["Organizations"]
---

# Get roles for a user in an organization

`GET /api/organizations/{id}/users/{userId}/roles`

Get roles assigned to a user in the specified organization with pagination.

## Path parameters

- `id` string, required
- `userId` string, required

## Query parameters

- `page` integer
- `page_size` integer

## Response `200`

A list of roles assigned to the user.

- object[]
  - `tenantId` string, required
  - `id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `type` 'User' | 'MachineToMachine', required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — The user is not a member of the organization.

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
