Skip to main content

OrganizationUserSuspension

Body for suspending a managed user or service account. Every field is optional, an empty body is a permanent suspension without a message (the historical behaviour).

kindSuspensionKind (string)

temporary keeps the API tokens and answers 402, permanent revokes them and answers 401. A permanently suspended account cannot be switched to temporary without being reactivated first (409).

Possible values: [temporary, permanent]

Default value: permanent
reasonstring

Audit-only reason, stored on the account, never returned to the suspended user.

Possible values: non-empty and <= 500 characters

messagestring

Client-facing message returned verbatim as the message of every 402 a temporarily suspended account receives, on the REST API and through the MCP servers. A permanently suspended service account has no token left, so its 401 does not carry it. Omitted, it clears the current message. Plain text, stored trimmed.

Possible values: non-empty and <= 500 characters

OrganizationUserSuspension
{
"kind": "permanent",
"reason": "string",
"message": "string"
}