Turn two-factor authentication on or off
set_user_tfaSwitch a user's two-factor authentication on or off. Turning it on forces enrolment at next sign-in; turning it off requires a confirmation token.
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. |