---
title: "GET /api/workspaces/users/workspace/{workspace_id}/"
method: GET
path: "/api/workspaces/users/workspace/{workspace_id}/"
tags: ["Workspaces"]
---

# GET /api/workspaces/users/workspace/{workspace_id}/

`GET /api/workspaces/users/workspace/{workspace_id}/`

Lists all the users that are in a workspace if the authorized user has admin permissions to the related workspace. To add a user to a workspace an invitation must be sent first.

## Path parameters

- `workspace_id` integer, required

## Query parameters

- `search` string
- `sorts` string

## Response `200`

- ListWorkspaceUsersWithMemberData[]
  - `id` integer, required
  - `name` string, required — User defined name.
  - `email` string, required — User email.
  - `workspace` integer, required — The workspace that the user has access to.
  - `permissions` string — The permissions that the user has within the workspace.
  - `created_on` string, date-time, required
  - `user_id` integer, required — The user that has access to the workspace.
  - `to_be_deleted` boolean, required — True if user account is pending deletion.
  - `two_factor_auth` string, required
  - `teams` WorkspaceUserEnterpriseTeam[] — Enterprise only: a list of team IDs and names, which this workspace user belongs to in this workspace.
    - `id` integer, required — The unique identifier for this team.
    - `name` string, required — The team name that this workspace user belongs to.
  - `role_uid` string, nullable — Enterprise or advanced only: the uid of the role that is assigned to this workspace user in this workspace.
  - `highest_role_uid` string, nullable — Enterprise or advanced only: the highest role uid assigned to this user in this workspace on anything, including roles from teams.

## Other responses

- `400`
- `404`

---

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