Create Office 365 Dynamic Distribution Group
In this short post we will look at how to create Dynamic Distribution Groups in Office 365 using Azure AD, Exchange Online PowerShell.
To get started we will look at how to create a Dynamic Distribution group using Azure AD.
- Navigate to Azure Active Directory > Mange >> Groups
- From the Top Menu select “New Group”
- From the “New Group” Select Group Type as “Office 365” and then Membership Type as “Dynamic User”
- To configure the Dynamic Group membership Rules, click on “Add dynamic query”
- Just for the purpose of this example, I will select “All enabled users” for this Dynamic membership rule.
- Once you have provided your membership rules, you can click “add query” at the bottom and then click on Create.
- Once the new group has been created, you can view the new group in Azure Active Directory groups as well as Office 365 Groups Portal.
Group Displayed in Office 365 Groups Portal.
Now that we have seen how to create a Dynamic Group from the Azure Active Directory Portal, let’s have a look at how we can create a Dynamic Group from the Office 365 Admin Portal.
Create Office 365 Dynamic Group from Exchange Online Admin Portal
- Navigate to Office 365 Admin Portal >Admin centers >> Exchange
- Click on “Recipients” then click on “Groups”, From the Groups menu click on the drop down next to “New Office 365 group” Then select “Dynamic distribution list”
- Provide a Name and Alias for the new Dynamic group and provide a rule for the group membership. For this example, I have listed the rule to select only users for Exchange Mailboxes.
- You can view the new group from the Exchange Online Centre or Office 365 Groups Portal.
Lastly let’s look at how one can create and Office 365 Dynamic Group using Exchange Online PowerShell.
- Establish a connection to Exchange Online PowerShell.
1 |
Connect-EXoPSSession |
- Next run the following to create the Dynamic group.
New-DynamicDistributionGroup -Name “My Dynamic DL 01” -IncludedRecipients MailboxUsers
- To verify that the new group has been created, run the following.
1 |
Get-DynamicDistributionGroup |
The above shows all Dynamic groups in Exchange Online.
Be First to Comment