v44

Swagger 2.0raw.githubusercontent.com2026-08-01304236810.6 KB
System Admin

Revoke system administrator privileges from a user

Remove system administrator privileges from a user (SystemAdmin only). Two safety guards: the caller cannot revoke their own privileges, and revoking the last remaining system admin is rejected — both prevent a SystemAdmin from accidentally locking the platform out of system-level administration. Idempotent on already-non-admin users.

post/system/admin/revoke

Request body

user_idstring required

Response

Privileges revoked successfully

avatarstring
can_access_all_tenantsboolean
created_atstring
emailstring
idstring
is_activeboolean
is_system_adminboolean
tenant_idinteger
updated_atstring
usernamestring