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.
Download this n8n workflow template and start using it instantly.
Managing user roles across dozens or hundreds of users can be a time-consuming administrative burden. This specialized n8n workflow provides a solution by automating the entire role update process. It solves the critical problem of keeping your Zammad user roles in sync with an external source of truth (like an Excel spreadsheet). By leveraging key n8n node types—specifically HTTP Request and data transformation utilities—this n8n workflow ensures that user emails are matched against existing Zammad accounts and the corresponding role IDs are updated securely via the Zammad API. This n8n automation is an excellent example of using core flow control for mission-critical administrative tasks.
This automation is initiated by a manual n8n trigger, making it ideal for scheduled administrative runs.
zammadbaseurl and the excelsourceurl (the location of the user data file).email and the new roleids (expected to be an array of Zammad Role IDs).id.email field.PUT request to the Zammad API endpoint for the specific user ID, sending the new roleids payload. This completes the synchronization using this highly effective n8n workflow.To install and utilize this n8n workflow template, follow these steps:
zammadbaseurl to your active Zammad instance and verify the excelsourceurl points to the exact location of your user data file.Authorization.Bearer YOURAPITOKEN (replace YOURAPITOKEN with a valid, privileged Zammad API token).email and role_ids). When clicking "Execute Workflow" (Manual Trigger): The starting n8n trigger for the flow, designed for manual runs rather than external hooks.
Basic Variables (Set): Defines flow constants like zammadbaseurl and excelsourceurl. This makes the n8n workflow easily portable.
Download Excel (HTTP Request): Downloads the user data file from the specified URL. Key configuration: sets the response format to file.
Extract from File (Extract from File): This specialized n8n node parses the downloaded binary data, expecting an xlsx (Excel) file format, extracting rows into structured JSON items.
Zammad Universal User Object (Set): Maps the extracted Excel columns to standardized keys (email, roleids), preparing the data for Zammad API consumption. Uses n8n expressions like {{ $json.email }}.
Find Zammad User by email (HTTP Request): Performs a GET request to Zammad's search API using the email as the query parameter. Requires Bearer Token Authentication.
Merge (Merge): A crucial core logic n8n node that combines the role data (input 1) with the Zammad user ID found (input 0), matching records based on the email field.
Update User Roles (HTTP Request): Executes the final PUT request to update the user's roles (/api/v1/users/{{ $json.id }}). Key configuration: Sends a JSON body containing the array of roleids and utilizes the Zammad Bearer token credential.
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.

Automate your CRM updates with this powerful n8n workflow. Use an n8n node leveraging OpenAI to extract contact details from inbound emails, search HubSpot, and create engagements.

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.

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.


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







































