POST/api/admin/users/{uid}/disableAdmin

Disable a user

Marks the account disabled and revokes every session and token it holds (the user's tokens_valid_after watermark is pinned while the account stays disabled), so it can no longer log in or use an existing session. Administrators cannot disable themselves.

operationId post_api_admin_users_uid_disableAdministration

Authentication & permissionsAdmin

Platform administrators only

Accepted credentials
Who may call
Platform administrators only

Path parameters

NameTypeDescription
uid*string (uuid)

uid of the target user

Responses

application/json
ResourceCreationResponse
PropertyTypeDescription
success*true
message*string
resource_id*string

Identifier of the created / affected resource

JSONExample
"success"true
"message""string"
"resource_id""string"

Example request

bashcurl
curl -X POST 'https://auth.schemavaults.com/api/admin/users/<uid>/disable' \
  -b 'refresh_token_<auth_server_app_id>=<value>'

Other methods on this path

POST /api/admin/users/{uid}/disable | SchemaVaults Auth API