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 → Get
AI-generatedOverview
This node interacts with the Directus API to retrieve information about a specific role by its ID. It is useful in scenarios where you need to fetch detailed data about a role within a Directus-managed system, such as for user management or access control purposes.
Use Case Examples
- Fetching role details to display in an admin dashboard.
- Retrieving role information to verify permissions before performing an action.
Properties
| Name | Meaning |
|---|---|
| ID | Primary key of the role to retrieve |
Output
JSON
id- The unique identifier of the rolename- The name of the roledescription- Description of the rolepermissions- Permissions associated with the role
Dependencies
- Directus API with appropriate authentication
Troubleshooting
- Ensure the provided role ID is valid and exists in the Directus system to avoid 'not found' errors.
- Verify that the API credentials have sufficient permissions to access role data.
- Check network connectivity to the Directus API endpoint if requests fail.
Links
- Directus Roles API Documentation - Official documentation for managing roles in Directus via API