Skip to main content
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.

Authorizations

Authorization
string
header
required

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

Path Parameters

user_id
string
required

The ID of the user to impersonate

Body

protocol
enum<string>
required

The protocol to use for impersonation

Available options:
oauth2,
samlp,
wsfed,
wstrust-usernamemixed
impersonator_id
string
required

The ID of the user performing the impersonation (admin)

client_id
string
required

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

Response

Impersonation URL generated successfully

The impersonation URL