--- title: "Starting the AD synchronization script using the Web UI" slug: "starting-the-ad-synchronization-script-using-the-web-ui" tags: ["Product Usage", "EX 11.x", "FX 11.x", "AX 11.x", "NX 11.x", "Network Security"] updated: 2026-08-24T19:53:02Z published: 2026-08-24T19:53:02Z canonical: "docs.trellix.com/starting-the-ad-synchronization-script-using-the-web-ui" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Starting the AD synchronization script using the Web UI Before you can configure AD sender impersonation detection rules, you must enable Office 365 AD synchronization. The appliance starts a script that queries the AD data for users and groups. > [!NOTE] > Note > > The first time the script runs, it runs continuously to obtain all the group data from Office 365 AD. Thereafter, the script checks Office 365 AD for group and user changes every 24 hours. After the script completes its initial run, use the Email Security - Server appliance Web UI to view the AD groups in your organization and select the groups to be used in AD impersonation detection rules. The Email Security - Server appliance watches for sender impersonation attacks on the AD groups and users you specify. ### Prerequisites - You have administrator access to the Email Security - Server appliance. - Appropriate permission for the Office 365 app have been configured (as described in [Configuring the Office 365 app authentication on](/data-and-email/docs/configuring-the-office-365-app-authentication) ). **To start the AD synchronization script:** 1. Log in to the Email Security - Server appliance Web UI as an administrator. 2. Choose **Settings > Impersonation > AD Group Rules**. 3. Click to enable the **Enable Active Directory Group Impersonation Rules** option. ![O365AD_Group_Rules_tab.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-28fe3072-9405-a366-5bba-ed9918233486.png?sv=2026-02-06&spr=https&st=2026-11-22T14%3A08%3A47Z&se=2026-11-22T15%3A08%3A47Z&sr=c&sp=r&sig=r5wflZMpauTgjo1i7cjBJ5u5sy2nLi5tt2ULVjcKGy0%3D) The script begins within one minute. 4. Wait until the script completes before you configure AD impersonation detection rules. Depending on the size of the active directory, you must allow 10 to 15 minutes for the script to query the Office 365 AD for groups in your organization. > [!NOTE] > Note > > The appliance Web UI does not display the AD synchronization progress or status. The first time the script runs, it runs continuously to obtain all the group data from Office 365 AD. Thereafter, the script checks Office 365 AD for group and user changes every 24 hours.