Directus (denkhaus) icon

Directus (denkhaus)

Consume Directus API

Overview

The "Accept User Invite" operation for the "User" resource is designed to allow a user to accept an invitation by providing a valid invite token and setting their password. This node would typically be used in workflows where new users are invited to join a system (such as Directus), and need to complete their registration by accepting the invite and creating a password.

Common scenarios:

  • Automating onboarding processes for new users.
  • Integrating with external systems that send out user invites and require automated acceptance.
  • Streamlining user registration flows in custom applications.

Practical example:
A company sends out invitations to new employees to join their internal platform. Using this node, the workflow can automatically accept the invite and set up the user's password based on information from another system.

Properties

Name Meaning
Token Accept invite token. The unique code sent to the user to accept their invitation.
Password Password of the user. The password that will be set for the user upon accepting invite.

Output

The output will contain a JSON object reflecting the result of the invite acceptance process. While the exact structure depends on the underlying API response, it typically includes confirmation of the invite being accepted and may include user details or status.

Dependencies

  • Requires access to a Directus instance (or similar backend) that supports user invites.
  • May require API credentials or environment variables to connect to the backend service, depending on the broader node configuration.

Troubleshooting

  • Invalid Token Error: If the provided token is invalid or expired, the node may return an error indicating the invite cannot be accepted. Ensure the token is correct and has not expired.
  • Password Policy Violation: If the password does not meet security requirements (length, complexity), the node may throw an error. Use a strong password as per system policy.
  • Connection Issues: Errors related to network or authentication failures may occur if the node cannot reach the backend service. Check API credentials and network connectivity.

Links and References

Discussion