---
title: "List the roles assignable in an organization"
method: GET
path: "/organizations/{organizationID}/roles"
tags: ["Organizations"]
---

# List the roles assignable in an organization

`GET /organizations/{organizationID}/roles`

## Request

- Base URL: `https://api.xata.tech`
- URL: `https://api.xata.tech/organizations/{organizationID}/roles`
- Auth: OAuth 2
  - Implicit: `https://auth.xata.io/realms/xata/protocol/openid-connect/auth`
  - Scopes: `role:read`

Roles are predefined. Every member of an organization holds exactly one.

## Response `200`

List of assignable roles

- object
  - `roles` OrganizationRole[], required
    - `id` 'admin' | 'editor', required: The roles a member of an organization can hold
    - `name` string, required: Human-readable name of the role
    - `description` string, required: What the role allows

## Other responses

- `401`: Error returned when authentication or authorization fails
- `403`: Error returned when authentication or authorization fails
- `404`: Generic error response
- `5XX`: Unexpected Error

## Changes

- **2026-09-24** `1b3ced5b38b0`: 1 info
  - removed the `viewer` enum value from the `roles/items/id` response property for the response status `200`
- **2026-09-11** `dea04a8fcb58`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/xata/apis/xata-api/changes/organizations/:organizationID/roles/get.md)

---

[API](https://skmtc.dev/xata/apis/xata-api.md) - [All operations](https://skmtc.dev/xata/apis/xata-api/llms.txt) - [OpenAPI document](https://skmtc.dev/xata/apis/xata-api/revisions/3145f2078d68?raw)
