Dynamic Group

Use case: Filter all Asia users for email comms

Dynamic group membership updates are expected to process for all groups within 24 hours. Learn more

Rules for the Dynamic Group

(user.country -in ["MY","SG","VN","CN","TW","HK","IN","ID"]) and 
(user.displayName -in ["Snow Wang","Wenjian Khor"]) and 
(user.accountEnabled -eq True) and (user.mail -contains "jabil.com")

This will create a group with admin and requestor for the next step, which is disabling the Welcome email since the scope is huge for this group, and we don't want to spam everyone's inbox

Get the current setting for the group with the ExchangePowershell module

Install-Module ExchangePowershell
Import-Module ExchangePowershell

Connect-ExchangeOnline

#Get current setting and update
Get-UnifiedGroup -Identity "GroupEmail@domain.com" | Select WelcomeMessageEnabled
Set-UnifiedGroup -Identity "GroupEmail@domain.com" -UnifiedGroupWelcomeMessageEnable:$false

#Check and compare with previous output
Get-UnifiedGroup -Identity "GroupEmail@domain.com" | Select WelcomeMessageEnabled

Now replace the user.displayName -in ["Snow Wang","Wenjian Khor"]) with user.displayName -NotIn ["People to exclude from the group"])

By default, all emails to this "Group Address" will end up in the Group inbox. We need to adjust the setting below to get the email forwarded to the group users.

If required, control who can send email to this DL via this setting on Exchange Admin

The below error will show if you do not have permission to send email to this group

Last updated