Bulk User Incident Response
bulk_user_responseRun bulk incident response and offboarding by forcing logout, locking, disabling, or resetting 2FA; unlock or re-enable accounts as needed. Preview changes and confirm with an audit comment.
Instructions
Apply an opinionated sequence of bulk user operations.
.. warning::
This tool can lock out, disable, or strip 2FA from many users in a
single call. It is intended for incident response (e.g. compromised
accounts), bulk offboarding, or break-glass restoration. Always
verify the user_ids list with the caller before invoking and
require an explicit confirm=True plus a meaningful audit
comment referencing the ticket/incident.
Composes calls to POST /v1/bulk-user-operations/* endpoints in the
sequence prescribed by scenario.
Scenarios
"compromise"
Force-logout → lock → disable → reset FIDO2 → reset TOTP. Use when
an account is suspected of compromise and you want the strongest
possible response.
"offboard"
Force-logout → disable. Less aggressive — keeps 2FA registrations
so audit trails remain meaningful.
"unlock"
Unlock → enable. Reverses a prior lockout/disable.
"reenable"
Enable only. Use after "compromise" was applied in error.
"force_logout"
Just terminate active sessions.
Parameters
user_ids:
List of user identifiers (or JSON string of the same).
scenario:
One of the scenario names listed above.
comment:
Required audit comment. Must reference the ticket/incident and
explain why this action is being taken. An empty comment is
rejected.
confirm:
Must be set to True to actually run any destructive scenario.
"unlock", "reenable" and "force_logout" also require
confirmation, but planning calls (confirm=False) return a
preview of what the tool would do.
Returns
dict
On preview (confirm=False): {"preview": {...}} with the
list of steps and target user_ids, no API calls made.
On execute: {"result": {...}, "verification": {...}} where
result lists per-step API responses and verification is
a fresh user listing for the affected ids.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"user_ids": "<user_ids>",
"scenario": "<scenario>",
"comment": "<comment>"
},
"name": "bulk_user_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | Yes | ||
| confirm | No | ||
| scenario | Yes | ||
| user_ids | Yes |