Enable or disable a required action
keycloak_auth_required_action_set_enabledEnable or disable a required action in Keycloak by providing its alias. Idempotent operation that leaves the action unchanged if already in the requested state.
Instructions
Enables or disables a single required action in the currently configured Keycloak realm, identified by its alias. This is a write operation that is not destructive and is idempotent: setting an already-matching state leaves the action unchanged. Call keycloak_auth_required_actions_list first to obtain valid aliases. Returns a short text confirmation stating whether the action was enabled or disabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | Alias identifying the required action to update, exactly as returned by keycloak_auth_required_actions_list (for example 'VERIFY_EMAIL' or 'UPDATE_PASSWORD'). Required. | |
| enabled | Yes | Target state for the required action: true enables it, false disables it. Required; the operation is idempotent when the action is already in the requested state. |