← All Use Cases

Event-Driven
Azure AD Sync

Cutting identity sync latency from 30 minutes to seconds — without touching the default sync interval.

AI-designed · Infrastructure-executed · Zero AI at runtime

The Problem

By default, Microsoft Entra Connect (formerly Azure AD Connect) synchronizes Active Directory changes to the cloud every 30 minutes. For environments where identity changes need near-instant propagation — onboarding, access control, compliance — that delay is unacceptable.

The common fix? Reduce the sync interval to 5 minutes or less. But that means polling 6x more often, burning CPU on the AD server and the sync engine, even when nothing changed.

30m
Default sync interval
5m
Typical "fix" (polling)
<10s
Our approach (event-driven)

The Solution

Instead of polling harder, we let the OS tell us when something matters. A Windows Scheduled Task listens for Security Event IDs — the exact signals Windows emits when AD objects change — and fires a delta sync only when needed.

🖥️
AD Change
User created,
password reset, etc.
📋
Event ID
Windows Security
Event Logged
Scheduled Task
Trigger fires
instantly
☁️
Delta Sync
Changes pushed to
Entra ID

Monitored Events

The task watches for 13 Security Event IDs covering the full lifecycle of user and group changes:

4720User created
4722User enabled
4723User info changed
4725User deleted
4726User disabled
4738Global group created
4728Added to global group
4729Removed from global group
4732Added to security group
4733Removed from security group
4746User password reset
4756Updated group membership
4764Group type changed

Implementation

A lightweight helper script on the Domain Controller handles the sync call:

# C:_sync.ps1
Import-Module 'C:Program FilesMicrosoft Azure AD SyncBinADSyncADSync.psd1'
Start-ADSyncSyncCycle -PolicyType Delta

The Windows Scheduled Task Auto-EntraSync-OnADChange runs as SYSTEM with a 10-minute execution limit, registered via XML to ensure reliability over remote management.

The default 30-minute sync cycle remains intact as a safety net — the event trigger is an acceleration layer, not a replacement.

Results

0
Unnecessary sync cycles
~10s
Avg. sync latency
100%
Change coverage
0
Config changes to ADCS
✓ Zero-downtime deployment