---
title: "POST /api/admin/users/impersonate/"
method: POST
path: "/api/admin/users/impersonate/"
tags: ["Admin"]
---

# POST /api/admin/users/impersonate/

`POST /api/admin/users/impersonate/`

This endpoint allows staff to impersonate another user by requesting a JWT token and user object. The requesting user must have staff access in order to do this. It's not possible to impersonate a superuser, staff or deactivated user.

## Request body

- BaserowImpersonateAuthToken — Serializer used for impersonation.
  - `user` integer, required

## Response `200`

- object
  - `user` object — An object containing information related to the user.
    - `first_name` string — The first name of related user.
    - `username` string, email — The username of the related user. This is always an email address.
    - `language` string — An ISO 639 language code (with optional variant) selected by the user. Ex: en-GB.
  - `token` string — Deprecated. Use the `access_token` instead.
  - `access_token` string — 'access_token' can be used to authorize for other endpoints that require authorization. This token will be valid for 10 minutes.

---

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