Sync Microsoft Entra Contacts with Zammad Using n8n

Save hours manually syncing Microsoft Entra contacts to Zammad users. This n8n workflow automates contact updates, creations, and deactivations for accurate support system user data.
zammad
httpRequest
merge
+6
Workflow Identifier: 2193
NODES in Use: Manual Trigger, Sticky Note, Set, Zammad, Merge, Compare Datasets, HTTP Request, SplitOut, If
Sync Entra contacts with Zammad using n8n

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

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow gets contacts from Microsoft Entra and syncs them with Zammad users automatically.
It finds new contacts to add, updates existing user info, and deactivates users no longer in Entra.
It stops manual errors and saves hours of work.


Who Should Use This Workflow

This is for support IT managers or teams who handle user data in both Microsoft Entra and Zammad.
It suits anyone wanting to automate contact syncing without manual copying.


Tools and Services Used

  • Microsoft Graph API: Gets contact data from Microsoft Entra.
  • Zammad API: Manages user records in Zammad with token authentication.
  • n8n Automation Platform: Runs the workflow nodes and logic.
  • Microsoft OAuth2 Credentials: Securely access Microsoft Graph API.

Inputs, Processing, and Outputs

Inputs

  • Contact list JSON array from Microsoft Graph API.
  • User list JSON from Zammad API.

Processing Steps

  • Split Entra contacts for individual processing.
  • Filter out invalid or unwanted contacts.
  • Map Entra contacts to a user format that matches Zammad.
  • Filter active and “contact” Zammad users.
  • Merge data from both sources by email.
  • Compare datasets to find new and removed users.
  • Update existing Zammad users with new info.
  • Create new users for missing contacts.
  • Deactivate users no longer in Entra.

Outputs

  • Updated Zammad user records.
  • New Zammad users created.
  • Inactive Zammad users deactivated but data preserved.

Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Download and Import

  1. Download the ready workflow file using the Download button on this page.
  2. Open the n8n editor where you run workflows.
  3. Choose “Import from File” and select the downloaded workflow.

Step 2: Configure Credentials and Settings

  1. Add or update Microsoft OAuth2 credentials with correct app permissions for Graph API access.
  2. Set Zammad API Key token in the credential settings for user management.
  3. If needed, update email, folder, or ID fields inside nodes to match your account.

Step 3: Test the Workflow

  1. Run the workflow manually using the Manual Trigger node.
  2. Check the output data and logs to confirm contacts are fetched and users synced.

Step 4: Activate for Production Use

  1. Activate the workflow toggle in n8n to enable automation.
  2. Optionally replace the manual trigger with a scheduled Cron node for regular syncing.

Optionally, consider self-hosting n8n for better control and security.


Customizations

  • Add more user fields from Entra, like job title or department, in the mapping node.
  • Adjust filters to exclude contacts by company or email domain.
  • Change deactivation to archiving in Zammad if preferred.
  • Set a schedule to run workflow regularly instead of manual trigger.

Troubleshooting

  • If authentication errors occur on Zammad nodes, check the API Key validity.
  • 401 errors from Microsoft Graph mean OAuth permissions need fixing.
  • No user updates? Confirm merge keys and email matching fields.

Pre-Production Checklist

  • Test Microsoft OAuth with the HTTP Request node alone.
  • Confirm Zammad API token can read and write users.
  • Run workflow manually and check outputs.
  • Make a backup of current Zammad user data before starting.
  • Review logs for any data merge or API errors.

Deployment Guide

Save the workflow after verification.
Activate it or switch the trigger to cron for scheduled runs.
Watch logs regularly to catch any sync problems early.


Conclusion

This workflow automates syncing Microsoft Entra contacts with Zammad users.
You get less manual work, fewer mistakes, and better contact data for support.
Users get up-to-date info without delays.

Consider adding workflow steps to assign tickets or use HR data for more automation.


Sync Entra contacts with Zammad using n8n

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Frequently Asked Questions

Download the workflow file from the page and import it into the n8n editor using the “Import from File” option.
OAuth2 credentials with permissions to read contacts (Contacts.Read) must be set up in n8n.
It compares email fields from Entra contacts and Zammad users to find which users to add or deactivate.
Yes, replace the manual trigger node with a cron node to execute the workflow automatically at set times.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.