---
title: "Get Users"
method: GET
path: "/users"
tags: ["/users"]
---

# Get Users

`GET /users`

Retrieve a list of `users`.

## Query parameters

- `search` string — Query to filter users by email
- `cursor` string — Cursor for the beginning of the current page
- `limit` integer — Number of users to return
- `deactivated` boolean — When set to true, return deactivated users instead.

## Response `200`

Successful Response

- UsersListResponse
  - `users` TenantUserInfo[], required — List of users
    - `email` string, required — The email of the user
    - `is_tenant_admin` boolean — Flag indicating if the user is a tenant admin
    - `roles` UserRolesEnum[] — The user level roles of the user.
    - `agent_level_roles` AgentLevelUserRolesEnum[] — The user level roles of the user for agent level roles.
    - `per_agent_roles` PerAgentRoles[] — Per agent level roles for the user. If a user is granted any role under `agent_level_roles`, then the user has that role for all the agents. Only the roles that need to be updated should be part of this.
      - `agent_id` string, uuid, required — ID of the agent on which to grant/revoke the role.
      - `roles` AgentLevelUserRolesEnum[], required — The roles that are granted/revoked
      - `grant` boolean, required — When set to true, the roles will be granted o/w revoked.
    - `id` string, required
    - `effective_roles` UserRolesEnum[] — The effective roles of the user.
  - `next_cursor` string, nullable — Cursor for the beginning of the next page

## Other responses

- `422` — Validation Error

## Changes

- **2025-10-28** `c8152db45500` — 6 warning
  - added the new `CONTEXTUAL_ADMIN` enum value to the `users/items/effective_roles/items/` response property for the response status `200`
  - added the new `CONTEXTUAL_ADMIN` enum value to the `users/items/roles/items/` response property for the response status `200`
  - added the new `CUSTOMER_ADMIN` enum value to the `users/items/effective_roles/items/` response property for the response status `200`
  - added the new `CUSTOMER_ADMIN` enum value to the `users/items/roles/items/` response property for the response status `200`
  - …2 more
- **2025-08-26** `db7245c74772` — 2 warning, 2 info
  - added the new `SERVICE_ACCOUNT` enum value to the `users/items/effective_roles/items/` response property for the response status `200`
  - added the new `SERVICE_ACCOUNT` enum value to the `users/items/roles/items/` response property for the response status `200`
  - added the optional property `users/items/agent_level_roles` to the response with the `200` status
  - added the optional property `users/items/per_agent_roles` to the response with the `200` status
- …earlier changes not shown

[Full history](https://skmtc.dev/contextualai/apis/endpoints/changes/users/get.md)

---

[API](https://skmtc.dev/contextualai/apis/endpoints.md) · [All operations](https://skmtc.dev/contextualai/apis/endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contextualai/endpoints/revisions/ca7f807eec8b/schema)
