---
title: "Returns all users in roles of the workspace."
method: GET
path: "/roles/users"
tags: ["roles"]
---

# Returns all users in roles of the workspace.

`GET /roles/users`

<Check title="Required Permissions" icon="key">The user must be an admin or have `workspace-manage-config:read` permissions.</Check>

## Query parameters

- `page` integer
- `pageSize` integer
- `orderby` string
- `filterby` string

## Headers

- `Authorization` string, required
- `aw-internal-request` string, required

## Response `200`

OK

- UserInRole[]
  - `userId` string, uuid, required — The id of the user to add to the role.
  - `isDeactivated` boolean — Whether the user is deactivated in this role.
  - `roleId` string, uuid — The id of the role the user is assigned to.

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
