logo
search
Exchange Connection Problems

How to Create an Exchange Online Dynamic Distribution List from an Active Directory Group

Tauseeq MagsiTauseeq Magsi Oct 12, 2026 868 views

Question details

The user needs to create an Exchange Online Dynamic Distribution List that automatically includes members of an on-premises universal security group in a hybrid environment.

How to Create an Exchange Online Dynamic Distribution List from an Active Directory Group
Product
Microsoft Exchange Online
Device & OS
not provided
Scenario
Setting up a RecipientFilter for a Dynamic Distribution List using the MemberOfGroup attribute and the on-premises group's distinguished name.
Observed behavior
The RecipientFilter fails to evaluate correctly, and the Exchange Online list does not populate with the members of the on-premises Active Directory group.
Before you start

Ensure you have Exchange Administrator privileges and verify that Azure AD Connect is actively synchronizing your on-premises Active Directory users to Microsoft 365.

Solution 1Recommended

Use Custom Attributes for Dynamic Filtering

Since directly filtering by on-premises group membership is limited in Exchange Online, syncing a custom attribute is the most reliable workaround.

In a hybrid environment, Exchange Online cannot dynamically query on-premises Active Directory in real-time. Because of this limitation, using the MemberOfGroup attribute with an on-premises distinguished name typically fails during the evaluation process in the cloud.

1
Assign a custom attribute in Active Directory

In your on-premises Active Directory, bulk-edit the user accounts belonging to the target security group to include a specific value in one of the Exchange extension attributes (e.g., CustomAttribute1 = 'Group_A_Member').

2
Force directory synchronization

Run Azure AD Connect to push these changes to the cloud. You can use the PowerShell command 'Start-ADSyncSyncCycle -PolicyType Delta' on your sync server to speed this up.

3
Update the RecipientFilter in Exchange Online

Navigate to the Exchange Admin Center or use Exchange Online PowerShell to modify the Dynamic Distribution List. Set the RecipientFilter to query the synchronized custom attribute instead of group membership (e.g., 'CustomAttribute1 -eq "Group_A_Member"').

Use Custom Attributes for Dynamic Filtering
Reliable Evaluation: By relying on synced custom attributes, Exchange Online can accurately process the list membership natively in the cloud without needing to resolve on-premises distinguished names.
Free Microsoft Office alternative

Manage Your IT Documentation Efficiently with WPS Office

While WPS Office cannot directly resolve Exchange Hybrid configuration limitations, it serves as an excellent, free Microsoft Office alternative. IT administrators can utilize WPS Office to draft technical guides, log PowerShell scripts, and present hybrid architecture diagrams with ease.

  1. 1. Download the software: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install and launch: Run the installer, follow the simple on-screen prompts, and launch the application to start creating your IT documents.
Highly compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight software suite that ensures smooth performance without consuming heavy system resources.Familiar, intuitive user interface for a seamless migration from Microsoft Office.Perfect for compiling and formatting Active Directory and Exchange Server documentation.
QA img-9

Frequently Asked Questions

Why does MemberOfGroup fail in an Exchange Online Dynamic Distribution List?

In a hybrid setup, Exchange Online relies exclusively on cloud-synchronized attributes. The distinguished name of an on-premises group often cannot be properly resolved by the cloud's dynamic evaluation engine, causing the filter to fail.

Can I use on-premises Active Directory attributes for cloud dynamic lists?

Yes, provided those attributes (such as ExtensionAttributes or CustomAttributes 1-15) are configured to sync to Microsoft 365 via Azure AD Connect.

How do I force Azure AD Connect to sync my attribute changes quickly?

You can force a delta synchronization by opening PowerShell as an Administrator on your Azure AD Connect server and running the cmdlet: Start-ADSyncSyncCycle -PolicyType Delta.

Are there other alternatives besides custom attributes?

Another alternative is to maintain a standard Mail-Enabled Security Group or a standard Distribution List that is managed on-premises and synced to Exchange Online, bypassing the need for cloud-side dynamic evaluation entirely.