Sync Entra Users to Zammad with n8n Automation

This workflow automates syncing Microsoft Entra users from a specific group into Zammad user accounts, ensuring up-to-date helpdesk user data and eliminating manual errors and time delays.
httpRequest
zammad
if
+6
Workflow Identifier: 2211
NODES in Use: Manual Trigger, Sticky Note, HTTP Request, Split Out, If, Set, Zammad, Compare Datasets, Merge

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow automatically syncs users from a chosen Microsoft Entra group to Zammad user accounts.
It solves the problem of manual syncing, saving time and reducing errors.
The workflow creates new users, updates existing ones, and deactivates users who no longer belong to the Entra group.
After running, the Zammad user list matches the specified Entra group exactly.


Who should use this workflow

This is for people who manage Zammad and Microsoft Entra user access.
If syncing users manually takes too much time or causes mistakes, this workflow can help.
It is useful for IT admins or customer support teams that want accurate user lists in Zammad.


Tools and services used

  • Microsoft Entra (formerly Azure AD): Source of user and group data.
  • Microsoft Graph API: To get group and user data from Entra.
  • Zammad Helpdesk: Where user accounts are created, updated, or deactivated.
  • n8n Automation: Runs the workflow and connects APIs.
  • OAuth2 Credentials: Used for Microsoft Graph API authentication.
  • Zammad API Key: Used for Zammad user management.

How the workflow works

Inputs

The workflow starts when you manually trigger it or schedule it in n8n.
It needs Microsoft OAuth2 credentials and a Zammad API Key configured.

Processing Steps

  • Get all groups from Microsoft Entra.
  • Select the specified group by matching its display name (like “ENTRA”).
  • Get all users in the selected Entra group.
  • Transform Entra user data into a standard format for Zammad.
  • Get all active users from Zammad who are linked to Entra.
  • Compare lists to find new users to add to Zammad.
  • Update existing Zammad users if their data changed.
  • Deactivate Zammad users who are no longer in the Entra group.

Output

The Zammad user accounts are synchronized with the Entra group.
New users appear in Zammad.
Existing users have updated info.
Inactive users get deactivated.


Beginner step-by-step: How to use this workflow in n8n

1. Import the workflow

  1. Download the workflow file by clicking the Download button on this page.
  2. Open the n8n editor.
  3. Click Import from File and select the downloaded workflow file.

2. Add your credentials

  1. Open the imported workflow and find nodes that need credentials (Microsoft OAuth2 and Zammad API Key).
  2. Add or update these credential settings with your API keys or tokens.
  3. Update any group names or IDs if you want to sync a different Entra group.

3. Test the workflow

  1. Click the Manual Trigger node and run the workflow.
  2. Check the execution to see if users were fetched and synced correctly.

4. Activate the workflow for production

  1. Replace the Manual Trigger with a Schedule Trigger node if you want automatic syncing.
  2. Activate the workflow in n8n by clicking Activate.
  3. Monitor workflow runs regularly to ensure sync works well.

For users running self-host n8n, import and credential management works the same.


Customization ideas

  • Change the target Entra group name in the filter node to sync different user sets.
  • Add more user fields like department or job title in the user object mapping node.
  • Use Zammad API to also change user roles based on Entra group membership.
  • Use a schedule trigger node for automatic regular syncing.
  • Add logging nodes to save actions for auditing user changes.

Common problems and solutions

401 Unauthorized error from Microsoft Graph API

Cause: OAuth2 credentials might be wrong or expired.
Solution: Refresh or recreate OAuth2 credentials with proper permissions.

Zammad API errors on user creation or update

Cause: Missing required user fields or incorrect field mapping.
Solution: Check Zammad node for correct required fields and fix mappings.

Workflow does not run on testing

Cause: Manual Trigger not executed properly.
Solution: Always click “Execute Workflow” button after selecting Manual Trigger.


Expected final results

✓ Zammad user accounts fully match the Microsoft Entra group users.
✓ New Entra users are created in Zammad automatically.
✓ Existing Zammad users get updated without manual work.
✓ Users removed from Entra group get deactivated in Zammad.
✓ Time saved by avoiding manual syncing.


Frequently Asked Questions

Replace the Manual Trigger node with a Schedule Trigger node and activate the workflow. This runs the sync regularly without manual start.
Microsoft OAuth2 credentials with permissions to read groups and members from Microsoft Graph API, and a Zammad API Key with permission to read and write users.
Yes. You can duplicate the workflow and change the group filter for each, or add logic to loop through multiple groups.
That user’s Zammad account gets deactivated automatically by the workflow.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free