Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

User → Create Multiple

AI-generated

Overview

This node operation allows creating multiple user accounts in a system by providing an array of user data objects in JSON format. It is useful for batch user creation scenarios, such as onboarding multiple users at once or migrating users from another system. For example, you can create several users with their email, password, and role information in a single execution.

Use Case Examples

  1. Creating multiple users by providing an array of user objects with email, password, and role fields.
  2. Batch importing users into a system from a JSON data source.

Properties

Name Meaning
Data (JSON) An array of partial user objects containing user details such as email, password, and role to be created in bulk.

Output

JSON

  • id - The unique identifier of each created user.
  • email - The email address of each created user.
  • role - The role assigned to each created user.

Dependencies

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

Troubleshooting

  • Ensure the JSON data is correctly formatted as an array of user objects; invalid JSON will cause errors.
  • Check that required fields like email, password, and role are included for each user object.
  • API authentication errors may occur if credentials are missing or invalid; verify API key or token configuration.
  • Role IDs must be valid and exist in the system; otherwise, user creation will fail.

Links

Discussion