Use this robust n8n workflow to automatically synchronize and reset Zammad user roles to standard defaults. This n8n template ensures compliance and simplifies maintenance tasks.
Download this n8n workflow template and start using it instantly.
Maintaining consistent user permissions across a large Zammad instance can be challenging. This n8n workflow provides a robust automation solution for auditing and enforcing default role assignments. By utilizing this powerful n8n workflow, administrators can ensure that all active users are correctly assigned baseline roles, streamlining IT compliance and reducing manual administrative load. The architecture is flexible, allowing you to easily define which users must be excluded from the bulk update process and which roles are considered the standardized defaults. This specific n8n template also includes an optional branch to retrieve and export current Zammad roles for auditing purposes.
This automation is initiated using a simple manual n8n trigger, designed for scheduled maintenance runs or immediate batch operations.
Basic Variables n8n node, where essential data like the Zammad API key, base URL, a list of defaultroles (Role IDs), and an excludezammadusersbyid list are defined.Get all Roles path retrieves all defined Zammad roles (and optionally exports them to Excel), and the Get all Users Zammad n8n node retrieves the full list of users.If n8n node, which applies critical filtering logic. It only proceeds if the user is currently active AND the user's ID is NOT present in the exclusion list defined in the initial Basic Variables n8n node.Update Users to default Role(s) n8n node executes. This n8n node sends a PUT request to the Zammad API using dynamic expressions to target the specific user ID and assign the array of defaultroles defined earlier. The workflow is configured with error handling to continue processing other users even if one specific API call fails.To utilize this n8n template effectively, follow these steps:
Get all Users). Set up a 'Zammad Token Auth' credential using an administrator API token.Basic Variables Set n8n node and update the following placeholders:zammadbaseurl: Replace -put-your-zammad-base-url-.zammadapikey: Replace -put-your-api-key- (Note: Although credentials are set for the Zammad node, this custom API key is required for the HTTP Request n8n node used for the update).defaultroles: Input the comma-separated IDs (e.g., [2, 3]) of the roles you want to enforce.excludezammadusersby_id: Input the comma-separated IDs of users who should retain their current roles and be skipped by the n8n workflow. When clicking ‘Test workflow’ (Manual Trigger): Serves as the starting point, initiating this batch n8n workflow when manually activated.
Basic Variables (Set n8n node): Central configuration hub. Defines the API URL, authentication key, array of defaultroles to assign, and an array of user IDs (excludezammadusersby_id) to skip during the process.
Get all Users (Zammad n8n node): Connects to Zammad to fetch a list of all current users. Crucial for feeding the user data into the rest of the n8n workflow.
If (Logic n8n node): Acts as the gatekeeper. It ensures that the user is currently active (active: true) and that their User ID is not present in the exclusion list defined in the Basic Variables n8n node.
PUT request to the Zammad API to overwrite the user's existing roles with the list of default roles. It uses the continueErrorOutput setting for reliable batch processing.Use this powerful n8n workflow to automatically synchronize Zammad user roles and permissions by extracting user data from an external Excel (.xlsx) file using the dedicated n8n node.

Use this powerful n8n workflow to automatically download an image and update your Twitter profile banner using the HTTP Request n8n node and OAuth1 authentication. Explore n8n templates for social media automation.

Automate logistics tracking by instantly updating Shopify order tags when an Onfleet delivery task is delayed. Implement this event-driven n8n workflow template.

Use this n8n workflow to automatically fetch Zammad ticket statuses, filter them by New/Open/Pending, and send a daily summary report to a Zulip stream using the powerful n8n node.

Deploy a robust n8n workflow to categorize files by MIME type, upload them to Supabase Storage, and instantly generate a secure, expiring signed URL for access. This n8n templates solution utilizes core n8n node functions.

Use this powerful n8n workflow template to delegate video URL handling to Google Apps Script for robust Google Drive uploads, followed by automated file renaming using an n8n node. Learn how to use this advanced n8n automation.


Open source enthusiast and Zammad user with a passion for sharing knowledge and building simple, effective automation solutions with n8n.







































