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

# 代理ログイン

> トラブルシューティングのために、別のユーザーとしてログインできる代理ログイン用URLを取得します。

## エンドポイント

`POST /users/{user_id}/impersonate`

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

### 注記

* このエンドポイントは、**Global Client** の認証情報でのみ使用できます。
* 実際のログインと代理ログインを区別するため、代理されたユーザーのプロフィールには、`impersonated` および `impersonator` という追加のプロパティが含まれます。例: `"impersonated": true, "impersonator": {"user_id": "auth0|...", "email": "admin@example.com"}`。
* 通常の Web アプリでは、`additionalParameters` を設定する必要があります。`response_type` は `code`、`callback_url` は Auth0 が認可コードを付与してリダイレクトするコールバック URL、`scope` は JWT に含めたい JWT クレームに設定してください。

## リクエスト本文のパラメーター

**protocol** `string` *required*

**impersonator\_id** `string` *required*

**client\_id** `string` *required*

**additionalParameters** `object`

## レスポンスメッセージ

| Status | Description |
| - | - |
| 200 | 代理ログイン用URLの取得に成功 |
