Skip to main content
POST
Deactivate a user in the organization
A deactivated user keeps their membership, team memberships, assigned sessions, and history, but can’t use the organization, and all of their roles are cleared. In list users, they appear with status: "deactivated". A user deactivated in every organization they belong to can’t sign in, and their open sessions end, unless an invitation is waiting for them. The organization owner can’t be deactivated. Deactivating someone who is already deactivated changes nothing. To undo it, reactivate the user. Requires the users:write scope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
integer
required

Organization user ID

Required range: x <= 9007199254740991

Response

Default Response