Actions118
- Item Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Server Actions
- Setting Actions
- User Actions
- Utility Actions
- Webhook Actions
User → Update Multiple
AI-generatedOverview
This node operation updates multiple user records in a Directus system based on provided primary keys and data. It is useful for batch updating user attributes such as titles, roles, or other user properties in one request, saving time and effort compared to updating users individually.
Use Case Examples
- Updating the title of multiple users to 'CTO' by specifying their unique keys and the new title in the data JSON.
- Batch modifying user roles or other profile details for a group of users identified by their primary keys.
Properties
| Name | Meaning |
|---|---|
| Data (JSON) | JSON object containing an array of user primary keys to update and the data object with user properties to be updated. |
Output
JSON
updatedUsers- Array of user objects that were updated with the new data.
Dependencies
- Requires API authentication credentials to access the Directus system.
Troubleshooting
- Ensure the 'keys' array contains valid user primary keys; invalid keys will cause update failures.
- The 'data' object must conform to the user object schema defined by Directus; invalid fields or data types will cause errors.
- API authentication errors may occur if credentials are missing or invalid, resulting in authorization failures.
Links
- Directus User Object Documentation - Reference for the user object properties that can be updated.