Passer au contenu principal
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>"

Documentation Index

Fetch the complete documentation index at: https://auth0-feat-ionic-capacitor-quickstart-modernization.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

user_id
string
requis

The ID of the user to impersonate

Corps

protocol
enum<string>
requis

The protocol to use for impersonation

Options disponibles:
oauth2,
samlp,
wsfed,
wstrust-usernamemixed
impersonator_id
string
requis

The ID of the user performing the impersonation (admin)

client_id
string
requis

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

Réponse

Impersonation URL generated successfully

The impersonation URL