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 "Permission: Update Multiple" operation in this custom n8n node allows users to update several permission records at once within a Directus system. This is particularly useful for administrators or automation workflows that need to modify access controls for multiple roles, collections, or actions in bulk. For example, you might use this node to grant or revoke permissions for a set of users across different resources in a single workflow step.
Properties
| Name | Meaning |
|---|---|
| Data (JSON) | JSON object containing: - keys: Array of primary keys of the permissions you'd like to update. - data: Object with any properties of the permission object to update. |
Output
- The output will be a JSON object reflecting the result of the update operation. Typically, this includes the updated permission objects or a summary of the update status for each key provided.
- No binary data is produced by this operation.
Dependencies
- Requires access to a Directus instance with appropriate API credentials and permissions to update permissions.
- n8n must be configured to connect to the relevant Directus environment.
Troubleshooting
Common Issues:
- Invalid or missing
keysarray: Ensure you provide an array of valid permission IDs. - Malformed JSON in "Data (JSON)": Double-check your input format.
- Insufficient permissions: The API credentials used must have rights to update permissions in Directus.
- Invalid or missing
Error Messages:
"Invalid primary keys": Check that all IDs in thekeysarray exist."Missing required property 'data'": Make sure thedatafield is present and correctly structured."Unauthorized": Verify your API credentials and user role permissions.