POST
/v1/mgmt/family/impersonateAuthorization
Descope Project ID and Management Key AuthorizationBearer <token>
Project ID:Management Key as bearer token.
In: header
Request Body
application/json
impersonatorUserIdOrLoginId*string
the impersonator (acting family admin), by user ID or login ID; must be a member of the dependent's family and hold the family impersonate-dependents permission there
Length
1 <= length <= 100dependentLoginId*string
the target dependent, by login ID
Length
1 <= lengthselectedFamily?string
optional family to scope the impersonated session to (stamped as the current-family claim); when set it must be the dependent's family. Omitted -> the impersonated session carries no current-family claim
Length
length <= 254Impersonate a family dependent. The impersonator (by user ID) must be a member of the dependent's family and hold the family impersonate-dependents permission there.
curl -X POST "https://api.descope.com/v1/mgmt/family/impersonate" \ -H "Content-Type: application/json" \ -d '{ "impersonatorUserIdOrLoginId": "string", "dependentLoginId": "string" }'{ "jwt": "string"}export interface Response {jwt?: string} Was this helpful?