---
title: "Impersonation Search Users"
method: GET
path: "/v1/auth/impersonation-search"
tags: ["auth"]
---

# Impersonation Search Users

`GET /v1/auth/impersonation-search`

## Request

- Base URL: `https://api.mentium.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mentium.io/v1/auth/impersonation-search`
- Auth: HTTP bearer

Search users while in impersonation context.

The standard admin/users endpoint requires SUPER_ADMIN role on current_user,
which fails during impersonation (current_user is the impersonated user).
This endpoint verifies the impersonator is still a SUPER_ADMIN and performs
the same search.

## Query parameters

- `search` string, nullable: Search by email, first name, last name, or organization name
- `page` integer: Page number
- `size` integer: Page size

## Response `200`

Successful Response

- PageUserAdminSchema
  - `items` UserAdminSchema[], required
    - `id` string, required
    - `email` string, required
    - `first_name` string, required
    - `last_name` string, required
    - `role` string, nullable
    - `organization_id` string, nullable
    - `organization_name` string, nullable
    - `workspaces` UserAdminWorkspaceSchema[]
      - `id` string, required
      - `name` string, required
      - `app_type` string, required
    - `app_access` UserAdminAppAccessSchema[]
      - `app_type` string, required
      - `status` string, required
      - `rejected_reason` string, nullable
      - `onboarded_at` string, nullable
      - `created_at` string, required
    - `created_at` string, required
    - `updated_at` string, required
  - `total` integer, required
  - `page` integer, required
  - `size` integer, required
  - `pages` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mentium/apis/mentium-api.md) - [All operations](https://skmtc.dev/mentium/apis/mentium-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mentium/apis/mentium-api/revisions/b4ed8e59432e?raw)
