---
title: "List all user roles and permissions in an organization"
method: GET
path: "/orgs/{orgId}/users/{userId}/roles"
tags: ["orgs"]
---

# List all user roles and permissions in an organization

`GET /orgs/{orgId}/users/{userId}/roles`

List all user roles and permissions in an organization; also list the sources of those roles (via team assignment or direct user assignment).

## Path parameters

- `orgId` integer, required
- `userId` integer, required

## Response `200`

OK

- ListUserRolesResponse
  - `user` MemberDbDto
    - `avatar` string, nullable
    - `email` string
    - `firstName` string, nullable
    - `lastName` string, nullable
    - `memberId` integer
    - `role` 'owner' | 'member' | 'collaborator'
    - `userId` integer
    - `userName` string
  - `userWorkspaces` UserWorkspaceRolesDto[]
    - `permissions` UserWorkspacePermissionDto[]
      - `permission` string
      - `roles` string[]
    - `roles` UserWorkspaceRoleDto[]
      - `role` string
      - `roleSourceType` 'individual' | 'team'
      - `sourceTeamId` integer
      - `sourceTeamName` string
      - `sourceTeamType` 'regular' | 'system_owners'
    - `workspaceId` integer
    - `workspaceName` string

## Other responses

- `400` — Bad request
- `403` — Operation not allowed
- `404` — Organization or user not found

## Changes

> 14 revisions in range; 1 not diffed.

- **2026-08-27** `97f7655d105a` — 3 breaking, 1 info
  - the response property `user/avatar` became nullable for the status `200`
  - the response property `user/firstName` became nullable for the status `200`
  - the response property `user/lastName` became nullable for the status `200`
  - added the non-success response with the status `404`
- **2026-04-20** `b2b5cc41d473` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/seqeralabs/apis/seqera-api/changes/orgs/:orgId/users/:userId/roles/get.md)

---

[API](https://skmtc.dev/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.dev/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/97f7655d105a/schema)
