Skip to main content

Suspend a managed user or service account

DELETE 

/organizations/:organization_id/users/:user_id

Suspends the account. The record is kept and listed by GET .../users with isLocked: true, suspensionKind and lockMessage.

  • kind: temporary: the account keeps its API tokens and its identity-provider access, but every call it makes (REST, GraphQL and MCP tools) is answered 402 PaymentRequired with message as the body's message and error.data.kind: "temporary". Reactivating restores access with the same tokens. Use it for an unpaid or exhausted subscription.
  • kind: permanent (default): a service account's tokens are revoked and a human is deactivated in the identity provider. Every call is answered 401. A revoked token gets the generic Unauthorized answer, which does not carry message. Use it to terminate access.

reason is kept for your audit trail only. message is returned verbatim to a temporarily suspended user, so write it for them (who to contact, what to do). On a permanent suspension it is kept on the account (lockMessage) but a service account never sees it. Suspending an account that is already suspended answers 200 and replaces kind, reason and message (an omitted message clears it). A permanently suspended account cannot be switched to temporary without being reactivated first (409, error.name USER_SUSPENSION_PERMANENT).

Requires user:write, an enterprise organization, and at least the org-admin role.

Request​

Responses​

The suspended user, with suspensionKind and lockMessage set