> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 偽装

> このエンドポイントは、別のユーザーとしてログインするために、偽装URLを取得するのに使用します。トラブルシューティングの際に役立ちます。

`POST /users/{user_id}/impersonate`

このエンドポイントは、別のユーザーとしてログインするために、偽装URLを取得するのに使用します。トラブルシューティングの際に役立ちます。

### 備考

* このエンドポイントは**グローバルクライアント**資格情報でのみ使用できます。
* 本物と偽装のログインを区別するために、偽装ユーザーのプロファイルには偽装される人と偽装する人のプロパティが追加で含まれます。例：`"impersonated": true, "impersonator": {"user_id": "auth0|...", "email": "admin@example.com"}`。
* 通常のWebアプリには、`additionalParameters`を設定します。その際に、`response_type`には`code`、`callback_url`にはAuth0が認可コードと一緒にリダイレクトするCallback URL、`scope`にはJWTに含めたいJWTクレームを設定します。

## Parameters

<ParamField body="protocol" type="string" />

<ParamField body="impersonator_id" type="string" />

<ParamField body="client_id" type="string" />

<ParamField body="additionalParameters" type="object" />

## Response

| Status | Description     |
| ------ | --------------- |
| 200    | 偽装URLを正常に取得しました |
