Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

User → Disable 2FA

AI-generated

Overview

This node operation disables two-factor authentication (2FA) for a user in the system. It requires the user to provide a one-time password (OTP) generated by their authenticator app to verify the request. This operation is useful in scenarios where a user needs to turn off 2FA for their account, such as when switching to a different authentication method or troubleshooting access issues.

Use Case Examples

  1. Disabling 2FA for a user who lost access to their authenticator app.
  2. Temporarily turning off 2FA during account recovery or security audits.

Properties

Name Meaning
OTP One-time password generated by the authenticator app, required to authenticate the disable 2FA request

Output

JSON

  • success - Indicates whether the 2FA disable operation was successful
  • message - Additional information or confirmation message about the operation

Dependencies

  • Requires API authentication credentials to interact with the user management system.

Troubleshooting

  • Ensure the OTP provided is correct and generated by the user's authenticator app.
  • Check that the API credentials used have sufficient permissions to modify user 2FA settings.
  • Common error: 'Invalid OTP' - means the one-time password is incorrect or expired; retry with a fresh OTP.
  • Common error: 'Permission denied' - means the API credentials lack rights to disable 2FA for the user.

Discussion