Reactivate a suspended managed user or service account
PATCH/organizations/:organization_id/users/:user_id
Lifts the suspension set by DELETE on the same path: isLocked, suspensionKind, lockReason and lockMessage are cleared. After a temporary suspension the account's existing API tokens work again unchanged. After a permanent suspension a human is reactivated in the identity provider, and a service account has no tokens left, mint new ones with POST .../users/{user_id}/tokens.
Requires user:write, an enterprise organization, and at least the org-admin role. The target must be currently suspended (400 otherwise).
Request
Responses
- 200
- 400
- 401
- 402
- 404
The reactivated user
The user is not suspended, or an ID is not a valid integer
Caller lacks permission to reactivate users in this organization
Payment required. Either the caller's account is temporarily suspended by its organization (error.name is PaymentRequired, error.data.kind is temporary, message is the organization's own text), or the caller's organization has no prepaid credit left for a metered call (no error.data). Or a sponsored read was refused because the sponsor's monthly quota for the caller's subscription is used up, or the sponsor suspended the subscription: message is the text to show (the sponsor's quotaMessage at the quota or suspensionMessage under suspension, or the default). The refusal is free and carries no cost envelope. A request that is refused in full is a 402 carrying the first refusal's message. A permanently suspended account gets 401 with error.name LOCKED and error.data.kind permanent instead.
Organization not found, or user not found in this organization