> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/active-directory/active-directory-sync-features-and-fun.md). Agents can also search and read this documentation through its [MCP server](https://help.security.gallagher.com/knowledge-hub/~gitbook/mcp).

# Active Directory Sync features and functions

Understand Active Directory Sync generations, cardholder replication, and filter behavior.

AD Sync provides **bidirectional cardholder replication** between Microsoft Active Directory and Command Centre, automating onboarding, offboarding, and role changes.

There are **two generations**, configured very differently:

* **v8.40 and below (legacy):** an XML-configured, certificate-secured architecture using the **FT Active Directory Sync Service**, a Control App, a Diagnostic client, and a Web Service server (default **port 8050**). See [Sync Checklist (v8.40 and below)](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/active-directory/active-directory-sync-checklist-v8-40.md).
* **v8.50 and above (current):** rebuilt on the **REST API**, forward-compatible with all later CC versions, and using AD Single Sign-On to authorize the config UI. The service is renamed **Gallagher Active Directory Sync Service**. See [Sync v8.50 - What's new](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/active-directory/active-directory-sync-v8-50-what-s-new.md).

Supported CC versions: v8.20, v8.30, v8.40, v8.50+, v8.90, v9.00, v9.10+.

Below 8.50, AD Sync was based on web-service customisation, which is version-dependent: a Command Centre lower than version 8.50 requires an Active Directory Sync **of the same version** on the server.

{% hint style="warning" %}
As at 2022-10-10, Active Directory Sync has not been enhanced to support Azure AD or any directory other than Microsoft AD. For Microsoft Entra ID (formerly Azure AD), see [Entra ID](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/entra-id.md), a separate feature.
{% endhint %}

## What each direction can change

Active Directory is Microsoft's directory server. Organisations use it to authenticate and authorise people's network access, and it is commonly the 'system of record' for organisational data and the first system into which personal information is captured.

AD Sync replicates cardholders both ways between Command Centre and Active Directory, but **the functionality is not the same in both directions**:

* **AD to CC** can create, delete and modify cardholders and their attributes: the creation, modification and deletion of user records in AD are replicated to cardholder records in Command Centre, including cardholder details and access permissions.
* **CC to AD** can only modify a small number of existing cardholder attributes: changes to a cardholder's card details in Command Centre can be replicated back to AD.

For replication to happen, either run a **Full Re-sync** (only recommended for the first-time sync), or initiate a change from all, or a targeted, AD user account that needs updating in Command Centre.

## Licensing

Active Directory Sync is a licensable option. Licence strings required:

| Licence section | Licence string          |
| --------------- | ----------------------- |
| Features        | `Notifications=1`       |
| Features        | `ADSingleSignOn=1`      |
| Customisations  | `ActiveDirectorySync=1` |

## How filtering works

* AD user accounts are processed against the **Cardholder Filter(s)** configured in a **Replication Group**. Multiple filters can exist on one group; all are checked against every AD user in a valid container.

![AD Sync Replication Group configuration — group name, CC credential, "When Cardholder not in AD" set to Leave in Command Centre, Domain Controllers tab with server/port/AD credential](https://328339335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bM8WhlBE9BYizPWJaPN%2Fuploads%2Fgit-blob-194eaaeb67bb5f82cc77062f05d9195a423de894%2FSECHUB-AD-SYNC-01-replication-group-config.png?alt=media)

![The Cardholder Filter's Valid Containers and Valid Groups selections](https://328339335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bM8WhlBE9BYizPWJaPN%2Fuploads%2Fgit-blob-1fb41f840f95623e84b60c925f9dbb00ae719278%2FSECHUB-AD-SYNC-02-valid-containers-groups.png?alt=media)

* **When a cardholder is not in AD** (global): choose **Leave in Command Centre**, **Deauthorise in Command Centre**, or **Remove from Command Centre**.
* **When a cardholder is not in Valid Groups** (but is within the Valid Container): a separate action. If a cardholder is in neither the Valid Container nor the Valid Groups, they fall under the "not in AD" rule.

![The AD-to-CC Cardholder Filter dialog — filter name, "When Cardholder not in Valid Groups" set to Deauthorise, Sync Mode Create and update, Default Division](https://328339335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bM8WhlBE9BYizPWJaPN%2Fuploads%2Fgit-blob-66a4e35eb61052ccbb87a679c326e0c6428f440e%2FSECHUB-AD-SYNC-03-cardholder-filter-dialog.png?alt=media)

![The "When Cardholder not in AD" dropdown expanded showing Deauthorise / Remove / Leave in Command Centre](https://328339335-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6bM8WhlBE9BYizPWJaPN%2Fuploads%2Fgit-blob-2d6de00fc58f41fb9dba77e4861d1abb42ba780f%2FSECHUB-AD-SYNC-04-when-cardholder-not-in-ad-options.png?alt=media)

***

🔗 **Related**

* [Sync User Accounts Requirement](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/active-directory/active-directory-sync-user-accounts-re.md). Minimum permissions for both generations.
* [Sync - How to Sync New Images Automatically (Script)](https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/active-directory/active-directory-sync-how-to-sync-new.md). Forcing image sync.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.security.gallagher.com/knowledge-hub/products/cc-software/configure/identity-solutions-cardholders-and-ope/active-directory/active-directory-sync-features-and-fun.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
