Open the Exchange Online Powershell Module. You can download it here: PowerShell Gallery | ExchangeOnlineManagement 2.0.5 


First you will build your filter for your Dynamic Distribution Group. Here is the logic for our Sequoyah - Project Managers DDG. Modify as needed for the new group.


$Filter = "((Title -eq 'Project Manager') -or (Title -eq 'Senior Project Manager') -or (Title -eq 'Service Project Manager') -or (Title -eq 'Preconstruction Project Manager') -or (Title -eq 'Senior Preconstruction Project Manager') -or (Title -eq 'Project Executive') -or (Title -eq 'Account Manager')) -and (ExchangeUserAccountControl -ne 'AccountDisabled') -and (RecipientTypeDetails -ne 'SharedMailbox')"


Test your logic with the following command (Replace the output with the data you're looking for).


Get-Recipient -RecipientPreviewFilter $Filter | ft displayname, title


Once your output looks like you want, create the DDG. Example here. Obviously replace the inputs with those appropriate for your new group.


New-DynamicDistributionGroup -Name "Sequoyah - Project Managers" -DisplayName "Sequoyah - Project Managers" -Alias ProjectManagers -PrimarySmtpAddress projectmanagers@sequoyah.com -RecipientFilter $Filter


Finally, set a group owner (probably yourself as users won't be able to modify it), and a mailtip that will display when users send an email to it.


Set-DynamicDistributionGroup -Identity "Sequoyah - Project Managers" -ManagedBy andrew.baker -MailTip "Distribution Group containing all Project Managers, Project Executives, and Account Managers across all divisions"



I used the following articles for reference when creating the group and filters:

Create Dynamic Distribution Lists with Recipient Filters (office365itpros.com) 

Get-Recipient (ExchangePowerShell) | Microsoft Docs 

Manage dynamic distribution group in Exchange Online | Microsoft Docs