Deployments and Testing/User Impersonation
POST
/v1/mgmt/impersonate

Authorization

AuthorizationRequiredBearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

application/jsonRequired
loginIdstring
impersonatorIdstring
validateConsentboolean
customClaimsobject
selectedTenantstring
curl -X POST "https://api.descope.com/v1/mgmt/impersonate" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "loginId": "string",
    "impersonatorId": "string",
    "validateConsent": true,
    "customClaims": {},
    "selectedTenant": "string"
  }'

OK

{
  "jwt": "string"
}

Was this helpful?