User Impersonation with Management SDKs
The management SDK requires a management key, which can be generated here.
You can use Descope management SDK for user impersonation operations.
Install SDK
Import and initialize Management SDK
Impersonate User
Note
You can also use our /impersonation API to impersonate a user.
This operation allows administrators to impersonate an existing user. The impersonator user must have the impersonation permission in order for this request to work. On success, the response will be a refresh JWT of the impersonated user.
Stop User Impersonation
Note
You can also use our /stop-impersonation API to impersonate a user.
This feature enables users to seamlessly switch back to their original account during an impersonation session.
 Was this helpful?