In this article, we will explore how to create and manage dynamic distribution groups in Office 365.
Can Microsoft 365 groups be dynamic? Yes, by using Dynamic Distribution Groups in Office 365.
Dynamic Distribution Groups in Office 365 offer a convenient way to manage email distribution lists based on specific criteria.
Unlike regular distribution groups that require manual membership management, Dynamic Distribution Groups in Office 365 automatically update their membership based on predefined rules.
This ensures that the right people are always included in relevant conversations.

Table of Contents
Mastering: Dynamic Distribution Groups in Office 365
What is a dynamic distribution group in Office 365?
A dynamic distribution group in Office 365 is a type of distribution group that automatically manages its membership based on predefined criteria or filters.
Unlike regular distribution groups, where members are manually added or removed, dynamic distribution groups utilize attributes such as user properties, organizational units, or custom attributes to determine their membership dynamically.
When creating a dynamic distribution group exchange online, you define criteria that determine the membership. For instance, a dynamic distribution group can include all users in a specific department, users with a particular job title, or users in a specific geographic location.
The group membership is calculated based on these criteria, and any user meeting the specified conditions is automatically added to or removed from the group.
Create dynamic distribution group Office 365 via GUI:
How to Create Dynamic Distribution Groups in Office 365
- Access the Exchange Admin Center (EAC): Open your web browser and go to the Exchange Admin Center URL: https://admin.exchange.microsoft.com.
- Navigate to Recipients: After logging into the Exchange Admin Center, click on “Recipients” in the left-hand navigation pane.
- Create a New Dynamic Distribution Group: Click on “Groups” at the top of the page and then select the “+” icon to create a new group. Choose “Dynamic distribution group” from the dropdown menu.
- Configure Group Properties: Provide a name, alias, and description for the dynamic distribution group. Optionally, specify an organizational unit (OU) if needed.
- Define Group Membership Rules: In the “Membership rules” section, click on “Add a rule” to open the rule configuration window. Here, you can define criteria based on attributes such as department, location, job title, or custom attributes.
- Review and Create the Group: Review the group properties and membership rules to ensure they meet your requirements. Click on “Save” to create the dynamic distribution group.
Managing Dynamic Distribution Groups in Office 365 via GUI:
Manage dynamic distribution group in Exchange Online
- Access the Exchange Admin Center (EAC): Follow the same steps mentioned above to access the Exchange Admin Center.
- Navigate to Recipients and Groups: Click on “Recipients” in the left-hand navigation pane, and then select “Groups” at the top of the page.
- Select the Dynamic Distribution Group: Locate the dynamic distribution group you want to manage from the list of groups and click on its name to open the properties.
- Modify Group Properties: To make changes to the group properties, click on the pencil icon. You can edit the name, alias, description, or organizational unit. Remember to click on “Save” after making any modifications.
- Adjust Membership Rules: Click on the “Membership Rules” tab to modify the membership rules. You can add, edit, or remove rules to update the group’s membership criteria. Additionally, you can include custom attributes or conditions to further refine the group membership. Click on “Save” to apply the changes.
Create a dynamic distribution group PowerShell
How do I create a dynamic distribution group in 365?
Connect to Exchange Online PowerShell: Open the PowerShell command prompt and connect to Exchange Online PowerShell using the following command:
Connect-ExchangeOnline
Create a Dynamic Distribution Group: Use the following command to create a dynamic distribution group, modifying it based on your requirements:
New-DynamicDistributionGroup -Name "GroupName" -RecipientFilter {RecipientFilter}
Manage Dynamic Distribution Groups in Office 365 Powershell
Manage dynamic distribution group in Exchange Online
Modify Group Properties: Use the Set-DynamicDistributionGroup command to modify the group properties such as the name, recipient filter, or custom attributes. Here’s an example:
Set-DynamicDistributionGroup -Identity "GroupName" -Name "NewGroupName" -RecipientFilter {RecipientFilter} -CustomAttribute "Value"
Adjust Membership Rules: To modify the membership rules for a dynamic distribution group, use the Set-DynamicDistributionGroup command. Here’s an example:
Set-DynamicDistributionGroup -Identity "GroupName" -RecipientFilter {NewRecipientFilter} -CustomAttribute "Value"
Remove a Dynamic Distribution Group: If you want to remove a dynamic distribution group, use the Remove-DynamicDistributionGroup command:
Remove-DynamicDistributionGroup -Identity "GroupName"
Dynamic distribution group recipient filter examples
Here are examples of recipient filters commonly used with Dynamic Distribution Groups in Office 365 in Office 365, along with sample commands for each filter:
- Department-based filter: Include all users in a specific department.
- RecipientFilter: (Department -eq ‘Marketing’)
- Sample command:
New-DynamicDistributionGroup -Name "Marketing Group" -RecipientFilter "(Department -eq 'Marketing')"
- Job title-based filter: Include all users with a particular job title.
- RecipientFilter: (Title -eq ‘Manager’)
- Sample command:
New-DynamicDistributionGroup -Name "Manager Group" -RecipientFilter "(Title -eq 'Manager')"
- Location-based filter: Include all users in a specific geographic location.
- RecipientFilter: (City -eq ‘New York’)
- Sample command:
New-DynamicDistributionGroup -Name "New York Group" -RecipientFilter "(City -eq 'New York')"
- Custom attribute-based filter: Include all users with a specific custom attribute value.
- RecipientFilter: (extensionAttribute1 -eq ‘Value’)
- Sample command:
New-DynamicDistributionGroup -Name "Custom Group" -RecipientFilter "(extensionAttribute1 -eq 'Value')"
- Age-based filter: Include all users within a certain age range.
- RecipientFilter: (Age -ge 30 -and Age -le 50)
- Sample command:
New-DynamicDistributionGroup -Name "Age Group" -RecipientFilter "(Age -ge 30 -and Age -le 50)"
- Security group membership filter: Include all users who are members of a specific security group.
- RecipientFilter: (MemberOfGroup -eq ‘SecurityGroupName’)
- Sample command:
New-DynamicDistributionGroup -Name "Security Group" -RecipientFilter "(MemberOfGroup -eq 'SecurityGroupName')"
- Combination of filters: Create complex filters by combining multiple criteria.
- RecipientFilter: (Department -eq ‘Sales’ -and Title -eq ‘Manager’)
- Sample command:
New-DynamicDistributionGroup -Name "Sales Manager Group" -RecipientFilter "(Department -eq 'Sales' -and Title -eq 'Manager')"
These examples demonstrate different recipient filters and the corresponding sample commands using the New-DynamicDistributionGroup cmdlet.
Attributes of New-DynamicDistributionGroup
The New-DynamicDistributionGroup cmdlet in Exchange Online allows you to create a new dynamic distribution group with various configurable attributes. When using this cmdlet, you can specify the following attributes:
- Name: Specifies the name of the dynamic distribution group.
- Example: -Name “Marketing Group”
- Alias: Specifies the email alias for the dynamic distribution group.
- Example: -Alias “MarketingGroup”
- RecipientFilter: Defines the recipient filter criteria that determine the dynamic membership of the group.
- Example: -RecipientFilter “(Department -eq ‘Marketing’)”
- OrganizationalUnit: Specifies the organizational unit (OU) where the dynamic distribution group will be created.
- Example: -OrganizationalUnit “Yourdomain.com/Departments”
- PrimarySmtpAddress: Specifies the primary SMTP address for the dynamic distribution group.
- Example: -PrimarySmtpAddress “marketing@yourdomain.com”
- HiddenFromAddressListsEnabled: Determines whether the dynamic distribution group is hidden from address lists.
- Example: -HiddenFromAddressListsEnabled $true
- ManagedBy: Specifies the users or groups who have management control over the dynamic distribution group.
- Example: -ManagedBy “JohnDoe@yourdomain.com”, “Marketing Managers”
- Notes: Provides additional notes or information about the dynamic distribution group.
- Example: -Notes “This group is for the Marketing department.”
These attributes are just a few examples of what can be set when creating a dynamic distribution group using the New-DynamicDistributionGroup cmdlet.
Attributes of Set-DynamicDistributionGroup
The Set-DynamicDistributionGroup cmdlet in Exchange Online allows you to modify the properties of an existing dynamic distribution group. When using this cmdlet, you can specify various attributes to configure or update the settings of the dynamic distribution group. Here are some common attributes that can be set with the Set-DynamicDistributionGroup cmdlet:
- Identity: Specifies the identity of the dynamic distribution group to be modified. This can be the name, email address, or unique identifier of the group.
- Example: -Identity “Marketing Group”
- Name: Specifies the new name for the dynamic distribution group.
- Example: -Name “New Marketing Group”
- Alias: Specifies the new email alias for the dynamic distribution group.
- Example: -Alias “NewMarketingGroup”
- RecipientFilter: Modifies the recipient filter criteria that determine the dynamic membership of the group.
- Example: -RecipientFilter “(Department -eq ‘Sales’)”
- OrganizationalUnit: Moves the dynamic distribution group to a new organizational unit (OU).
- Example: -OrganizationalUnit “yourdomain.com/Departments/Sales”
- HiddenFromAddressListsEnabled: Determines whether the dynamic distribution group is hidden from address lists.
- Example: -HiddenFromAddressListsEnabled $true
- ManagedBy: Modifies the users or groups who have management control over the dynamic distribution group.
- Example: -ManagedBy “JaneDoe@yourdomain.com“, “Sales Managers”
- Notes: Updates the additional notes or information about the dynamic distribution group.
- Example: -Notes “This group is for the Sales department.”
These attributes are just a few examples of what can be modified when using the Set-DynamicDistributionGroup cmdlet.
What is the distribution group limit in Office 365 dynamic?
The distribution group limit for dynamic distribution groups in Office 365 can vary based on your specific plan or subscription. As of my knowledge cutoff in September 2021, the following limits were in place for Office 365 dynamic distribution groups:
- Exchange Online Plan 1: Users were able to create a maximum of 500 Dynamic Distribution Groups in Office 365.
- Exchange Online Plan 2: Users had the ability to create a maximum of 500,000 Dynamic Distribution Groups in Office 365.
Conclusion
Dynamic Distribution Groups in Office 365 provide a flexible and efficient way to manage email distribution lists.
Whether you choose the user-friendly GUI or the power of PowerShell, you can easily create and manage Dynamic Distribution Groups in Office 365 to streamline communication within your organization. By leveraging custom attributes or conditions, you can further enhance the membership rules and ensure that the right people are included in the groups. Choose the method that suits your needs and take advantage of this valuable feature in Microsoft 365.
Visit Latestinfo365.com to check more article