---
title: "List user workspaces and organizations"
method: GET
path: "/user/{userId}/workspaces"
tags: ["workspaces"]
---

# List user workspaces and organizations

`GET /user/{userId}/workspaces`

Lists the workspaces and organizations to which the user identified by the given `userId` belongs.

## Path parameters

- `userId` integer, required

## Response `200`

OK

- ListWorkspacesAndOrgResponse
  - `orgsAndWorkspaces` OrgAndWorkspaceDto[]
    - `orgId` integer
    - `orgLogoUrl` string
    - `orgName` string
    - `orgType` 'academic' | 'evaluating' | 'pro' | 'basic' | 'internal'
    - `roles` string[]
    - `visibility` 'PRIVATE' | 'SHARED'
    - `workspaceFullName` string
    - `workspaceId` integer
    - `workspaceName` string

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

---

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