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
Role → Create Multiple
AI-generatedOverview
This node operation allows users to create multiple role objects in a system that manages roles, such as Directus. It is useful for bulk-adding roles with various attributes like name, icon, description, admin access, and app access. For example, an admin can create roles for 'Interns' and 'Customers' in one operation by providing an array of role objects in JSON format.
Use Case Examples
- Creating multiple user roles at once to streamline role management in an application.
- Bulk importing predefined roles with specific permissions and access settings.
Properties
| Name | Meaning |
|---|---|
| Data (JSON) | An array of partial role objects to be created, each containing properties like name, icon, description, admin access, and app access. |
Output
JSON
createdRoles- Array of created role objects with their details as returned by the system after creation.
Dependencies
- Requires an API key credential or authentication token to interact with the Directus API or similar role management system.
Troubleshooting
- Ensure the JSON data is correctly formatted as an array of role objects; invalid JSON will cause errors.
- Check that all required fields for each role object are provided to avoid validation errors.
- Verify API credentials and permissions to ensure the node can create roles in the system.
Links
- Directus Role Object Documentation - Reference for the structure and properties of role objects used in the data input.