Turn two-factor authentication on or off
set_user_tfaEnable or disable two-factor authentication for a Wiki.js account. Enabling forces the user to enrol at next sign-in; disabling is gated by a confirmation token to prevent unauthorized removal.
Instructions
Switches an account’s second factor. Turning it OFF weakens that account and is the reason this is gated; turning it on forces the user to enrol at their next sign-in. Requires a confirmation token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | True to require 2FA, false to remove it. | |
| user_id | Yes | Numeric Wiki.js id. | |
| confirm_token | No | Token from this tool’s previous, unconfirmed call. Omit it to receive one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | No | Present only when the answer was shortened to fit the budget. |