disable_user
Disable a user to block sign-in, aiding containment of compromised or stale accounts. Supports reversible undo, dry-run preview, and refuses self-disable.
Instructions
[WRITE][risk=medium] Disable a user (blocks sign-in); reversible.
The containment move for a compromised/stale account. Reads the user first so the harness records an undo that restores the prior enabled state. Live sessions survive — pair with revoke_user_sessions. Pass dry_run=True to preview.
Refuses to disable the account this tool authenticates as — including under dry_run, which must report a refusal rather than preview a call that will be refused.
Args: user_id: User id (Keycloak UUID / authentik pk), from list_users. dry_run: If True, preview without changing. target: IdP target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| user_id | Yes |