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
The "User - Update Multiple" operation in this custom n8n node allows you to update several user records at once in a Directus system. This is particularly useful for bulk-editing user information, such as updating roles, titles, or other attributes across multiple users efficiently. For example, if your organization needs to change the job title of several users to "CTO" or update their status, this node streamlines the process by accepting a list of user IDs and the new data to apply.
Properties
| Name | Meaning |
|---|---|
| Data (JSON) | JSON object containing: - keys: Array of primary keys (user IDs) to update. - data: Object with the fields and values to update for each user. See Directus User Object documentation for available properties. |
Output
- The output will be a JSON array/object reflecting the result of the update operation for each specified user.
- Each entry typically includes the updated user data as returned by the Directus API.
- No binary data is produced by this operation.
Dependencies
- Requires access to a Directus instance with appropriate permissions to update user records.
- May require an API key or authentication credentials configured in n8n for the Directus node.
Troubleshooting
Common Issues:
- Invalid or missing user IDs in the
keysarray may result in errors or no updates. - Incorrect field names or invalid data types in the
dataobject can cause the update to fail. - Insufficient permissions in Directus may prevent updates.
- Invalid or missing user IDs in the
Error Messages:
- "Invalid primary key(s)": Ensure all user IDs in
keysexist in your Directus instance. - "Validation failed for field...": Check that the fields in
datamatch the Directus user schema. - "Authentication required": Verify that your n8n Directus credentials are set up correctly.
- "Invalid primary key(s)": Ensure all user IDs in