Zammad Exchange address book sync: what it does and which method to use
Zammad's Exchange integration copies users from a Microsoft Exchange address book into Zammad, and it works in one direction only, from Exchange to Zammad. It connects to a local Exchange server with basic authentication, or to Microsoft 365 Exchange with OAuth. Choose the method by where your mailboxes live today, not by which one looks simpler. Any Exchange attribute can be mapped to a Zammad user attribute, including custom attributes, so the helpdesk can match the fields your company already keeps current, such as department, phone number or manager. Changes made in Zammad do not flow back to Exchange, so agents should not edit synced user records as the source of truth.
The sync covers the address book entries Exchange exposes to the integration, not the Global Address List. The Global Address List cannot be synced into Zammad, so a team that expects every company contact to appear automatically should confirm the scope with its Exchange administrator before planning. Plan for the users you actually need to find in tickets, and decide whether customers will come from this sync or from another source. Also confirm which Exchange version and authentication setup your environment uses, since the basic authentication path and the OAuth path involve different credentials and different administrator approvals.
Before you enable the sync, check whether the same people already exist in your directory integration. When the same users are present in LDAP, the LDAP integration takes precedence over the Exchange sync, so Exchange data will not override LDAP-managed records. If you run both, decide which directory owns each attribute, test one account end to end, and confirm the result in the user record. The detailed mapping and directory rules are covered in the sibling sections, and the Zammad admin documentation on Exchange is the next read for the current setup options.
What you need before connecting Exchange to Zammad
The Exchange connection depends on which Exchange you run, how Zammad reaches it and which versions the rest of the stack uses. Settle these four areas with your Exchange administrator and platform team before any account or app is created, because each one changes the setup steps that follow.
Choose the connection path
Zammad connects to a local Exchange server with basic authentication, or to Microsoft 365 Exchange with OAuth. The path is decided by where your mailboxes live, not by preference. On-premises Exchange uses a service account and password. Microsoft 365 uses an app registration with OAuth, so it needs an administrator who can grant the required permissions in the tenant. Confirm the path before planning anything else, because the credentials, permissions and test steps differ.
Zammad Exchange docsConfirm basic authentication is still allowed
Ask your Exchange administrator whether basic authentication is still permitted in your tenant or on your server. Many Microsoft 365 tenants have turned it off, and some on-premises environments restrict it by policy or protocol. If it is blocked, the on-premises path cannot work as planned and the team needs an OAuth-based approach instead. Get this answer in writing before you request a service account, since a rejected account wastes a change window.
Service account or app registration
On-premises, plan a dedicated service account with read access to the address book, not a personal mailbox or a shared admin login. For Microsoft 365, plan an app registration in Entra ID with the permissions your administrator is willing to grant, plus a client secret or certificate with an owner and an expiry date. Record who owns each credential, where it is stored and when it must be renewed, so the sync does not stop silently when a secret expires.
Network reachability from the Zammad server
The Zammad application server must reach the Exchange endpoint (for on-premises, the Exchange server or its client access endpoint; for Microsoft 365, the Microsoft endpoints used for OAuth and Exchange). Check firewall rules, DNS resolution, outbound proxies and TLS certificate trust from the Zammad host itself, not from a workstation. In a restricted network, ask the network team to confirm these paths before the integration is configured.
Zammad and PostgreSQL versions
Confirm the Zammad release you run and the PostgreSQL version it uses against the software requirements. Zammad stores its content in PostgreSQL 15 or newer and requires Redis 7 or newer for realtime communication. Check these versions on the target host before testing the Exchange sync, because a version mismatch can block the work regardless of how the Exchange side is configured. Record the versions in your change request so the test and production setups match.
Software requirementsTest environment and rollback plan
Plan a test Zammad instance with a copy of the target address book scope before pointing the sync at production users. Agree with the Exchange administrator which mailboxes or contacts are in scope, how many records are expected, and who reviews the first import. Write down how to disable the integration and which users were created by the sync so that a bad mapping can be reversed without manual cleanup across the helpdesk.
How to configure the Exchange sync in Zammad
This sequence takes you from choosing between basic authentication and OAuth through to a verified first import, so each sync pulls the expected fields from the address book into Zammad users.
Choose the connection method
Decide whether Zammad will connect to a local Exchange server with basic authentication or to Microsoft 365 Exchange with OAuth. The choice depends on where your mailboxes live and what your identity team allows. Confirm with your Exchange administrator which method the tenant or server supports and record the decision in your change ticket. The step is done when the method and its owner are written down, and the Exchange administrator has confirmed the mailbox or tenant is reachable for that method.
Create the account or app registration
For on-premises Exchange, the Exchange administrator creates a dedicated service account with read access to the address book and no interactive sign-in rights. For Microsoft 365, an administrator registers an application in Microsoft Entra ID, grants it the read permissions the Zammad Exchange documentation describes, and creates the client credentials. Store the secret or password in your secrets manager, not in a shared document. The step is done when the account or app exists, has only read scope, and the administrator can show that scope in the admin console.
Enter server or tenant details in Zammad
In Zammad's Exchange settings, an administrator enters the server address for on-premises Exchange, or the tenant and application identifiers for Microsoft 365, along with the credentials for the chosen method. Check each value against the values recorded in the previous step, since a mismatch usually fails silently. The step is done when every required field is saved and the settings page shows no validation errors.
Run the connection test
Use the test function in the Exchange settings to confirm Zammad can authenticate and read the address book. A failed test usually points to credentials, the network path to the server, or a missing permission on the account or app registration. Fix one cause at a time and rerun the test after each change. The step is done when the connection test passes and the test result is recorded in your change ticket.
Select the attributes to import
Map the Exchange attributes you need, such as display name, email address, phone and department, to the matching Zammad user attributes. The documentation notes that any Exchange attribute can be mapped, including custom attributes, so decide which fields agents and customers actually need. Leave out fields with personal data you have no reason to hold. The step is done when the mapping is saved and each mapped field has a named owner and a written reason.
Run the first sync and verify sample users
Start the first sync and wait for it to finish. Pick several sample users, including one with a custom attribute and one with a missing optional field, and open their Zammad profiles. Compare each field against the source entry in Exchange. The step is done when the sample users show the expected values, empty optional fields stay empty rather than receiving placeholder text, and the sync log shows no errors for the run.
Confirm the sync direction and LDAP precedence
Before you rely on the data, confirm with your team that the sync is one way from Exchange to Zammad, so edits made in Zammad will not flow back. Also check whether the same users also come from LDAP, because the LDAP integration takes precedence when both hold the same users. Note which users are affected and where their authoritative attributes come from. The step is done when the direction and precedence rules are written into your runbook and the owner of each attribute source is named.
Mapping Exchange attributes to Zammad user fields
This table compares common Exchange attributes with the Zammad user fields they typically feed and who should own each value. Read it as a starting point: confirm each attribute name and field type in your own Exchange and Zammad versions before you decide the direction of ownership.
| Exchange attribute | Typical Zammad user field | Owner to decide | Planning note |
|---|---|---|---|
| Display name | Firstname and lastname | Exchange | Split logic may differ from directory names, so test with a few users with compound surnames. |
| Primary email address | Exchange | Duplicate addresses across users or LDAP records can cause conflicts, so check uniqueness first. | |
| Business phone | Phone | Exchange | Confirm the format so telephony lookups from the CTI integration can match caller numbers. |
| Mobile phone | Mobile | Exchange | Decide whether agents or customers should own this value, since Zammad may hold local edits. |
| Department | Organization or custom field | Exchange | Zammad does not map organizations from the directory, so plan where this value is stored. |
| Job title | Custom user field | Exchange | Create the custom attribute in Zammad before mapping, and keep the name consistent. |
| Office location | Custom user field | Exchange | Useful for routing and reporting, but confirm that agents do not need to edit it locally. |
| Custom Exchange attribute | Custom user field | Local or Exchange | Any Exchange attribute can be mapped, so document each mapping and the reason for it. |
Why the Global Address List cannot be synced into Zammad
The Global Address List cannot be synced into Zammad through its Exchange integration, so a plan that assumes the full GAL will appear as Zammad users will fail at the first sync. The Exchange integration reads the directory data it is pointed at and maps Exchange attributes onto Zammad user attributes, but the GAL itself is not an importable source. Teams that want every person in the company available as a customer or agent need to decide, before configuration starts, where those identities will really come from and how far the Exchange sync is expected to reach.
The practical consequence falls on two lists. Agent lists are usually small and deliberate, so they can often be built from a scoped Exchange source, an LDAP or Active Directory sync, or a manual import. Customer lists are harder, because a customer who writes in from outside the directory will not exist in Zammad until someone creates them or a channel creates them on first contact. Before committing, the reader should list the actual people who need to appear, their home directory, and whether each group is a fixed set of accounts that a scoped source can cover. If customers are spread across several directories, that split belongs in the sibling LDAP or Active Directory planning as well.
If the GAL is central to the request, confirm the position with Zammad before design work. Ask whether any supported Exchange scope, filter or folder selection can return GAL members, what the current version of the Exchange integration documents, and whether the answer differs between the basic authentication path on-premises and the OAuth path for Microsoft 365. Ask for the behavior in writing, and test it in a non-production instance with a sample of real mailboxes before accepting it. The Zammad admin documentation for Exchange is the starting point for that check.
How Exchange, LDAP and Zammad user data flow
The Exchange address book starts in one of two places: an on-premises Exchange server reached with basic authentication, or Microsoft 365 Exchange reached with OAuth. Attributes move one way into Zammad user records, and any Exchange attribute can be mapped to a Zammad user attribute. LDAP is a second source for the same people, and where both hold a user, the LDAP record wins. Check which source owns each attribute, and treat the Zammad server and its administrator as the trust boundary where directory data and credentials are stored.
One-way Exchange sync into Zammad, with LDAP overriding shared users.
Securing the Exchange connection and the imported data
The Exchange connection reads directory data about every person in the address book, and Zammad stores what it reads. The cards below cover how the connection authenticates, how much it can read, where its secrets live, who can change it and what personal data should reach Zammad at all.
Choose OAuth for Microsoft 365
Zammad's Exchange integration supports basic authentication against a local Exchange server and OAuth against Microsoft 365 Exchange. For Microsoft 365, OAuth is the path to plan for, because it lets you register an application with scoped permissions instead of storing a mailbox user's password. Confirm with Microsoft which authentication methods your tenant still accepts for the protocol you intend to use before you design around basic authentication. Record the choice and the reason in the design document.
Exchange docsGrant read access to the address book only
The sync needs to read contact and user attributes, not send mail or change directory objects. Create a dedicated service account or app registration for Zammad, grant the narrowest read permission that returns the attributes you map, and confirm that it cannot read mailbox content it does not need. Test the grant with a sample query before go-live, and document who approved the permission set.
Protect the stored credentials
Whatever secret Zammad holds for Exchange, whether a service account password or an OAuth client secret, is a credential that can read your address book. Keep it out of configuration files and tickets, limit who can view it in the admin interface, and plan rotation with an owner and a calendar date. Check how your backup copies handle the same secret, since backups often outlive the settings that created them.
Restrict who can change the integration
Changing the Exchange mapping, the target attributes or the credentials can alter which people become Zammad users. Limit the administrator role that edits integration settings to a small named group, and log changes through your normal change process. Review that group whenever the helpdesk team changes, so former staff cannot modify a sync that feeds user accounts.
Limit the attributes that enter Zammad
Any Exchange attribute can be mapped to a Zammad user attribute, including custom attributes, so the mapping is where personal data scope is decided. Start from the fields your agents need to identify a caller, such as name, email address and organization, and add others only with a stated purpose. Compare the planned field list against your data handling rules and the retention period you set for customer records, and record which fields you deliberately left out.
Verify the imported data before agents rely on it
Run the first sync against a test instance and compare a sample of imported users with the source directory. Check for duplicate identities, missing email addresses and attributes that changed meaning after mapping. Because the sync is one way and the Global Address List cannot be synced, confirm which population you are actually importing before you describe the result to the data protection owner.
Exchange docsCommon Exchange sync failures and how to fix them
This table pairs each common Exchange sync symptom with its likely cause and the fix to try first. Use it as a triage list after the connection is set up, and confirm each cause against your own Exchange and Zammad settings before changing anything. The main takeaway is that most failures come from credentials, mapping gaps or the one-way direction of the sync, not from Zammad itself.
| Symptom | Likely cause | Fix |
|---|---|---|
| Authentication rejected | The account or app registration used for the connection lacks the mailbox or directory read permission, or its password or OAuth credentials have expired or changed. | Confirm the account for basic authentication on-premises, or the Microsoft 365 OAuth app and its granted permissions, then re-enter credentials and test the connection again. |
| Attribute missing after mapping | The Exchange attribute is empty for those users, or the mapping points to a Zammad user attribute that does not exist or has a different name. | Check the attribute on a sample user in Exchange, confirm the target field exists in Zammad, then correct the mapping and run a fresh sync. |
| Custom attribute not arriving | The custom attribute was not included in the mapping, or the Exchange field holding the value is not the one the team expected. | Map the custom attribute explicitly, verify its name and content on a test mailbox, and rerun the sync for affected users. |
| Users duplicated | The same person exists in Zammad from another source, or the match key between Exchange and Zammad differs (for example, email address formatting). | Decide which source owns each user, normalize the matching field, and merge or deactivate duplicates before the next sync cycle. |
| Users overwritten by LDAP | The same users also exist in the LDAP integration, which takes precedence when both hold them, so Exchange values are replaced. | Move the attributes you need to the LDAP source or remove the overlap. Do not expect Exchange to win for those users. |
| Removed users still present | The sync is one way from Exchange to Zammad, so deletions or disabled accounts in Exchange are not reflected in Zammad. | Deactivate or remove leaving users in Zammad through your own offboarding step, and confirm the process with your admin team. |
| Global Address List entries missing | The Global Address List cannot be synced into Zammad, so GAL-only entries never arrive. | Identify the users you need and source them from mailboxes or a directory the sync supports, and tell stakeholders the GAL is out of scope. |
Questions buyers ask before setting up Exchange sync
What drives the cost and effort of an Exchange address book sync?
The main cost driver is how many decisions the sync needs, not the sync itself. Effort rises with the number of directories involved, the number of Exchange attributes you want to map to Zammad user attributes (including custom attributes), and whether the environment is on-premises Exchange with basic authentication or Microsoft 365 with OAuth. Each of these needs Exchange administration, a Zammad administrator to test mappings, and a review of what personal data lands in Zammad. Ask any provider to quote these items separately: discovery of the Exchange setup, attribute mapping workshop, configuration in Zammad, test runs against a sample of users, and handover documentation. Costs are one-time for the build and recur only if you buy ongoing support or retainer work for later changes.
How long does a typical Exchange sync setup take?
Duration depends mostly on directory size and mapping decisions. A small address book with a short, agreed attribute list is a far simpler job than a large organization that has several Exchange environments, many custom attributes and unclear ownership of user records. Time is also lost waiting on Exchange administrators to create the service account or app registration and on decisions about which attributes Zammad should store. Ask for a written schedule that separates the discovery and decision phase from the configuration and test phase, because the first phase usually decides how long the second one takes. Your provider can confirm the schedule after reviewing your directory size and attribute list.
What does our team need to provide before the work starts?
You need three things before configuration begins. First, Exchange administrator access, or an administrator who can create the credentials the integration uses: a service account for an on-premises Exchange server with basic authentication, or an app registration in Microsoft Entra ID with the permissions required for OAuth against Microsoft 365. Second, a decision on authoritative sources. Because the sync is one way from Exchange to Zammad and LDAP takes precedence for users that exist in both, you must decide which system owns names, email addresses, phone numbers and department data. Third, a named owner who approves the attribute mapping and tests the results. Confirm the exact permissions and account types with Microsoft documentation and your own Exchange version before requesting access.
Can an in-house administrator set up Exchange sync without a partner?
Yes, if your team already runs Zammad and has someone comfortable with Exchange administration and Zammad's admin settings. The work is configuration rather than custom development, so the limiting factor is usually knowledge of which attributes are reliable and how precedence with LDAP will behave. Teams that do this in-house typically need time to read the Zammad admin documentation for Exchange, build a test mapping in a non-production Zammad instance, and document the result. A partner adds value when the directory is complex, when several sources overlap, or when you want an independent reviewer to check mappings against your data handling rules before go-live.
Is basic authentication still viable for Exchange sync?
Basic authentication works for a local Exchange server, and Zammad's documentation describes it as one of two supported connection methods alongside OAuth for Microsoft 365 Exchange. Whether it stays viable depends on your environment and your security policy rather than on Zammad alone. Check whether your Exchange server still accepts basic authentication for the protocols Zammad uses, whether your organization has restricted it, and whether the service account has the minimum permissions needed. If your tenant is in Microsoft 365, plan for OAuth. Confirm the current Microsoft guidance for your Exchange version before you commit to a design, because support for legacy authentication changes over time.
What happens to Zammad users when someone leaves Exchange?
Because the sync is one way from Exchange to Zammad, a change or removal in Exchange is pulled into Zammad on the next sync run, and Zammad does not push changes back. Before go-live, confirm with your provider and in a test instance exactly what happens to a removed user: whether the account is deactivated, left active, or kept with its ticket history. The answer matters for data retention and for customers who may still have open tickets. If the same person also exists in LDAP, LDAP takes precedence, so a removal in Exchange alone may not change the record. Plan the offboarding process across both sources and your identity provider so that access is removed where it should be.
Why can't the Global Address List be synced into Zammad?
Zammad's Exchange integration cannot sync the Global Address List, so the sync imports users from the sources it supports rather than the whole organizational directory view. Plan around this limit at the start. If your goal is to make every employee searchable in Zammad, confirm whether an LDAP or Active Directory sync covers that need, since those integrations often hold the authoritative user records. Ask the team that owns your directory to list which users must appear in Zammad and which only need to exist in Exchange. This prevents a mismatch between what the business expects and what the integration delivers.
How DeployOpen scopes and delivers the Zammad Exchange integration
DeployOpen scopes the Exchange integration as a fixed-scope piece of work, with the connection method, attribute mapping, LDAP overlap rules, testing, deliverables and timeline written down and agreed before any configuration starts. The first decision in that scope is the connection path: a local Exchange server reached with basic authentication, or Microsoft 365 Exchange reached with OAuth. The two paths involve different service accounts, permissions and tenant settings, so the written scope names one of them and records who provides the credentials. DeployOpen plans and implements the work on a self-hosted Zammad instance in your own infrastructure, so the sync configuration, service account and any network path to Exchange stay under your control and can be reviewed by your security team.
The scope also fixes the attribute map and the overlap rule before anything is built. Each Exchange attribute that Zammad should receive is listed with its target user attribute, including any custom attributes, and each one is marked as required or optional. The same document states that the sync is one way from Exchange to Zammad, that the Global Address List cannot be synced, and that where LDAP already holds the same users the LDAP integration takes precedence. Testing is written into the scope as well: a sample of users is synced to a non-production Zammad, the resulting profiles are checked field by field, and the overlap cases are confirmed against real LDAP-managed accounts. Ongoing support, upgrades and periodic re-checks of the mapping after Exchange or Zammad changes can be added as a retainer once the initial delivery is accepted.

