Actions111
- Item Actions
- Webhook Actions
- Collection Actions
- File Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Extension Actions
- Field Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Setting Actions
- User Actions
- Utility Actions
Overview
This node is designed to disable two-factor authentication (2FA) for a user in a Directus system. It is useful in scenarios where a user has lost access to their authenticator app or needs to reset their 2FA settings. For example, an administrator could use this node in an n8n workflow to automate the process of disabling 2FA for users upon request.
Properties
| Name | Meaning |
|---|---|
| OTP | One-time password generated by the authenticator app. This is required to verify the user's identity before disabling 2FA. Example: 859014 |
Output
The output will be a JSON object indicating the result of the 2FA disable operation. The structure typically includes information about the success or failure of the request and may contain additional details such as user ID or status message.
Dependencies
- Requires access to a Directus instance.
- The user must have appropriate permissions to disable 2FA.
- No external API keys are specified in the provided code, but connection credentials to Directus are likely required via n8n credentials configuration.
Troubleshooting
- Invalid OTP: If the one-time password is incorrect or expired, the operation will fail. Ensure the OTP is current and generated from the correct authenticator app.
- Permission Denied: If the user does not have sufficient permissions, the node may return an error. Check user roles and permissions in Directus.
- Connection Issues: Errors related to connecting to the Directus instance may occur if the credentials are misconfigured or the service is unreachable.