Enable or disable a member (admin only)
PUT/api/users/:userId/status
Toggles a team member between active and disabled. ADMIN-ONLY. Disabling syncs the membership directory so the account can no longer log into this tenant. The owner and the last active admin are protected (422).
Request
Responses
- 200
- 401
- 403
- 404
- 422
The updated member.
Not authenticated. code: account_disabled means the member's seat was deactivated in this workspace: the session is over even though the token was not revoked (clients sign out and clean up).
Authenticated but not allowed.
Resource not found (or not visible to the current tenant).
The request failed validation.