FM
FlowMarket
General Automation Intermediate ⚡ 14 n8n Nodes

Entra contacts to Zammad user sync

This workflow facilitates seamless synchronization between Entra (Microsoft Azure AD) and Zammad. It automates the following processes: 1. Fetch Entra Contac...

🔌 Nodes & Integrations Used (3)

Zammad Compare Datasets HTTP Request

📖 Implementation & Setup Guide

This workflow facilitates seamless synchronization between Entra (Microsoft Azure AD) and Zammad. It automates the following processes:

  1. **Fetch Entra Contacts**:
  2. **Create Universal User Object**: Extracts key user information, such as email, phone, and name, and formats it for Zammad compatibility.
  3. **Synchronize with Zammad**:
  4. - Identifies users in Zammad who need updates based on Entra data.
  5. - Adds new users from Entra to Zammad.
  6. - Deactivates users in Zammad if they are no longer in Entra.

Key Features

  • **Dynamic Matching**: Compares contacts from Entra with existing Zammad users based on email and updates records accordingly.
  • **Efficient Management**: Automatically creates, updates, or deactivates Zammad users based on their status in Entra.
  • **Custom Fields**: Supports custom field mapping, ensuring enriched user profiles in Zammad.

Setup Instructions

  1. **Microsoft Entra Integration**:
  2. - Ensure proper API permissions for accessing Entra contacts.
  3. - Configure Microsoft OAuth2 credentials in n8n.

2. **Zammad Integration**: - Set up Zammad API credentials with appropriate access rights. - Customize the workflow to include additional fields or map existing fields as needed.

3. **Run Workflow**: - Trigger the workflow manually or set up an automation schedule (e.g., daily sync). - Review created/updated/deactivated users in Zammad.

Use Cases

  • **IT Administration**: Keep your support system in sync with the organization’s Entra data.
  • **Customer Management**: Ensure accurate and up-to-date user records in Zammad.

Prerequisites

  • Access to an Entra (Azure AD) environment with contacts data.
  • A Zammad instance with API credentials for user management.
  • A custom field in Zammad User Object (`entra_key`) of type `String`.

![Bildschirmfoto 20241201 um 13.56.37.png](fileId:871)

  • A custom field in Zammad User Object (`entra_object_type`) of type `Single selection field with two key value pairs
  • - user = User
  • - contact = Contact`

![Bildschirmfoto 20241201 um 13.57.17.png](fileId:872)

---

This workflow is fully customizable and can be adapted to your organization’s specific needs. Save time and reduce manual errors by automating your user sync process with this template!

If you have found an error or have any suggestions, please report them here on [Github](https://github.com/Sirhexalot/n8n-Zammad-Sync-Entra-Contacts-to-Zammad-User).

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Entra contacts to Zammad user sync (1).json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related General Automation Workflows

View All in General Automation →