API ReferenceAdmin Auth Users
Suspend Auth User
POST
/v1/admin/auth_users/{auth_user_id}/suspendSuspend a user.
The user can no longer sign in to any application in this tenant, and
everything they hold here is revoked at once: their device keys, passkeys,
refresh tokens and browser sessions. Applications that registered a
back-channel logout URI with the session-revoked initiator are told. The
user is emailed that their account was suspended. The user, their sub,
attributes, roles and group memberships are kept, so reinstating restores
them. Suspending a user who is already suspended changes nothing and sends
no email. Returns 404 for an unknown user, and 409 scim_managed for a
user provisioned by SCIM (suspend them in your identity provider).
Authorization
HTTPBearer AuthorizationBearer <token>
In: header
Path Parameters
auth_user_id*Auth User Id
Format
uuidResponse Body
application/json
application/json
curl -X POST "https://example.com/v1/admin/auth_users/497f6eca-6276-4993-bfeb-53cbbbba6f08/suspend"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "subject_id": "string", "email": "user@example.com", "name": "string", "attributes": {}, "app_metadata": {}, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "active": true, "scim_managed": false, "role_count": 0}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}