---
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` RolesEnum[] — The user level roles of the user.
    - `per_agent_roles` PerAgentRoles[] — Per agent level roles for the user. If a user is granted any role under `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` RolesEnum[], 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
  - `next_cursor` string, nullable — Cursor for the beginning of the next page

## Other responses

- `422` — Validation Error

## Changes

- **2025-02-08** `d79ccb778953` — 1 info
  - endpoint added

[Change 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/5298551c424b/schema)
