System Admin

Revoke system administrator privileges from a user

Changed on

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

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/system/admin/revoke
  • Auth
    none declared

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

Changes