メインコンテンツへスキップ
POST
https://{yourDomain}
/
users
/
{user_id}
/
impersonate
Impersonate a User (Legacy)
curl --request POST \
  --url https://{yourDomain}/users/{user_id}/impersonate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "protocol": "oauth2",
  "impersonator_id": "<string>",
  "client_id": "<string>",
  "additionalParameters": {},
  "response_type": "<string>",
  "state": "<string>"
}
'
"<string>"

承認

Authorization
string
header
必須

The access token received from the authorization server in the OAuth 2.0 flow.

パスパラメータ

user_id
string
必須

The ID of the user to impersonate

ボディ

protocol
enum<string>
必須

The protocol to use for impersonation

利用可能なオプション:
oauth2,
samlp,
wsfed,
wstrust-usernamemixed
impersonator_id
string
必須

The ID of the user performing the impersonation (admin)

client_id
string
必須

The Client ID of the application to impersonate into

additionalParameters
object

Additional parameters for the impersonation

response_type
string

The response type (e.g., 'code')

state
string

State parameter for OAuth flow

レスポンス

Impersonation URL generated successfully

The impersonation URL