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 n8n node allows you to create a new user in a Directus system. It is designed for scenarios where you need to automate the onboarding of users, such as registering new employees, customers, or members into your Directus-managed application. For example, you could use this node to automatically add users when they sign up through a web form, or to batch-import users from another system.
Properties
| Name | Meaning |
|---|---|
| JSON/RAW Parameters | Whether to provide body parameters as raw JSON (if true) or via individual fields in the UI (if false). |
| Body Parameters | The full set of user properties as JSON or RAW input. Used only if "JSON/RAW Parameters" is enabled. |
| Password | The password for the new user. Required unless using JSON/RAW mode. |
| The email address for the new user. Required unless using JSON/RAW mode. | |
| Additional Fields | Optional extra fields for the user: - Avatar: Avatar file ID (many-to-one to files) - Description: User description - First Name: User's first name - Language: Admin App language - Last Name: User's last name - Location: User's location - Role Name: User's role (selectable from available roles) - Tags: Tags for the user - TFA Secret: Two-factor authentication secret - Theme: UI theme (auto, light, dark) - Title: User's title |
Output
- The output will be a JSON object representing the newly created user, including all provided and default fields as returned by the Directus API.
- If binary data is involved (e.g., avatar upload), it will reference the file but not include the binary content directly.
Dependencies
- Requires access to a Directus instance with appropriate permissions to create users.
- May require an API key or authentication credentials configured in n8n.
Troubleshooting
- Missing required fields: If "Password" or "Email" are omitted (and not provided in JSON/RAW mode), the node may throw an error indicating missing required fields.
- Invalid JSON: When using "Body Parameters" in JSON/RAW mode, invalid JSON syntax will result in a parsing error.
- Permission errors: If the connected Directus account lacks permission to create users, you may receive an authorization error.
- Role selection: If the specified role does not exist or is misspelled, the user creation may fail.