require_password_reset
Force a password reset at the user's next sign-in, or remove a pending reset requirement (undo). Supports dry-run for preview without changes.
Instructions
[WRITE][risk=medium] Require a password reset at next sign-in (Keycloak required actions); reversible — the undo clears the flag only if this call set it. Pass clear=True to remove a pending requirement instead.
Args: user_id: User id, from list_users. clear: If True, REMOVE the pending reset requirement (the undo path). dry_run: If True, preview without changing. target: IdP target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | ||
| target | No | ||
| dry_run | No | ||
| user_id | Yes |