---
title: "List assignable workspace roles"
method: GET
path: "/admin/workspaces/{workspaceId}/roles"
tags: ["Admin"]
---

# List assignable workspace roles

`GET /admin/workspaces/{workspaceId}/roles`

## Request

- Base URL: `https://cloud.kaneo.app/api`
- URL: `https://cloud.kaneo.app/api/admin/workspaces/{workspaceId}/roles`
- Auth: HTTP bearer

List the roles an administrator can give members of a workspace: the built-in viewer, member and admin roles plus the workspace's custom roles. Ownership is changed with the ownership transfer instead.

## Path parameters

- `workspaceId` string, required

## Response `200`

Assignable role names

- string[]: Role names an administrator can assign in the workspace.

## Other responses

- `401`: Missing or invalid credentials
- `403`: The caller is not an instance administrator or is authenticated with an API key
- `404`: Workspace not found
- `429`: The API key exceeded its rate limit or usage quota. Wait the number of seconds in Retry-After before retrying. The X-RateLimit headers are sent only when the rate limit was hit.

## Changes

- **2026-10-08** `c7b8a842601b`: 3 breaking, 4 info
  - removed the media type `text/plain` for the response with the status `403`
  - removed the media type `text/plain` for the response with the status `404`
  - removed the media type `text/plain` for the response with the status `429`
  - added the media type `application/json` for the response with the status `401`
  - …3 more
- **2026-10-08** `2ed51b8af657`: 3 breaking, 3 info
  - removed the media type `application/json` for the response with the status `401`
  - removed the media type `application/json` for the response with the status `403`
  - removed the media type `application/json` for the response with the status `404`
  - added the media type `text/plain` for the response with the status `403`
  - …2 more
- **2026-10-07** `df1439c724ee`: 2 breaking, 3 info
  - removed the media type `text/plain` for the response with the status `403`
  - removed the media type `text/plain` for the response with the status `404`
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `403`
  - …1 more
- **2026-10-06** `7dace2b05cc2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/usekaneo/apis/kaneo-api/changes/admin/workspaces/:workspaceId/roles/get.md)

---

[API](https://skmtc.dev/usekaneo/apis/kaneo-api.md) - [All operations](https://skmtc.dev/usekaneo/apis/kaneo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usekaneo/apis/kaneo-api/revisions/93f78789100c?raw)
