Skip to main content

ImpersonateUser

Stable

Impersonate a user — returns the legacy token field plus optional OAuth2 pair fields (accessToken/refreshToken/expiresIn/tokenType). Legacy clients keep using token; OAuth2-aware clients can switch to the pair fields at their own pace.

Signature

mutation {
ImpersonateUser(userId: ...)
}

Retourne : ImpersonateUserToken!

Arguments

NomTypeRequisDéfautDescription
userIdID!

Exemple

mutation {
ImpersonateUser(
userId: $userId
) {
token
accessToken
refreshToken
expiresIn
tokenType
}
}