POST
/v1/mgmt/impersonate

Impersonate a user, using a valid management key.

This API endpoint will allow you to impersonate a user using a login ID. The impersonator user must have the impersonation permission in order for this request to work. The response would be a refresh JWT of the impersonated user

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<ProjectId:ManagementKey\>

Try it

/v1/mgmt/impersonate

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

loginIdstring

impersonatorIdstring

validateConsentboolean

Status codeDescription
200OK
curl -X POST "https://api.descope.com/v1/mgmt/impersonate" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <ProjectId:ManagementKey>" \
  -d '{
  "loginId": "string",
  "impersonatorId": "string",
  "validateConsent": true
}'

{
  "jwt": "string"
}

Was this helpful?