Skip to content

Users

users_sessions_impersonate

Start an impersonated session as one user of this product — support access, hard-capped.

Tool

users_sessions_impersonate

Start an impersonated session as one user of this product — support access, hard-capped.

Start an impersonated session as one user of this product — support access, hard-capped. Returns an access token that expires within 30 minutes and CANNOT be refreshed; there is no refresh token. While it is in use, every credential, factor, identifier and session mutation is refused, the user is emailed (unless the product turned that notice off), and the whole thing is recorded in the audit trail against you. Give a real reason: it goes into the audit row and into that email.

Behavior

HTTP
POST /users/sessions/impersonate

Arguments

NameTypeRequiredDescription
reasonstringWhy. Recorded in the audit trail and shown to the user in the notification email — write what you would want to read in an incident review (a ticket number and one sentence).
userIdstringThe end user to sign in as.

Response

FieldTypeAlwaysDescription
userIdstring
expiresAtstringWhen the session dies. It cannot be extended or refreshed.
expiresInintegerSeconds until the access token expires.
sessionIdstring
accessTokenstringThe access JWT of the impersonated session. There is NO refresh token.

Try it

Start an impersonated session as one user of this product — support access, hard-capped.

When to use

Start an impersonated session as one user of this product — support access, hard-capped. Returns an access token that expires within 30 minutes and CANNOT be refreshed; there is no refresh token. While it is in use, every credential, factor, identifier and session mutation is refused, the user is emailed (unless the product turned that notice off), and the whole thing is recorded in the audit trail against you. Give a real reason: it goes into the audit row and into that email.

Example

Ask your agent something like this:

Start an impersonated session as one user of this product — support access, hard-capped.

The agent will invoke users_sessions_impersonate with these arguments:

{
  "reason": "<reason>",
  "userId": "<userId>"
}

Esc

Start typing to search the docs.

navigateselect