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
Sync Entra users to Zammad with n8n

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

Learn how to Build this Workflow with AI:

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.


Sync Entra users to Zammad with n8n

Visit through Desktop to Interact with the Workflow.

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 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.