Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

User → Get Current

AI-generated

Overview

This node interacts with the Directus API to retrieve information about the currently authenticated user. It is useful in scenarios where you need to fetch details about the user who is currently logged in or authenticated in the system, such as displaying user profile information or customizing workflows based on the current user's data.

Use Case Examples

  1. Fetching the current user's profile details to display in a dashboard.
  2. Using the current user's information to personalize workflow actions or permissions.

Output

JSON

  • id - The unique identifier of the current user.
  • email - The email address of the current user.
  • first_name - The first name of the current user.
  • last_name - The last name of the current user.
  • role - The role assigned to the current user.
  • status - The status of the current user (e.g., active, inactive).

Dependencies

  • Directus API authentication token or credentials

Troubleshooting

  • Ensure that the API credentials or authentication token are correctly configured to access the Directus API.
  • If the node returns an authentication error, verify that the token has not expired and has the necessary permissions to retrieve user information.
  • Check network connectivity to the Directus API endpoint if requests fail.

Links

Discussion