Forum Discussion
DougTraylor
Oct 18, 2019Copper Contributor
Create a Dynamic Distribution List from members of an "Office 365 Group"
Hello. I have been asked to nest an Office 365 Group into a distribution list, but I don't believe this is possible. I had the bright idea that I could create a Dynamic Distribution List from the m...
- Oct 22, 2019
Ok, I figured it out using powershell. 🙂 The key turned out to be the recipientfilter needed the recipientType and memberofgroup attributes>
New-DynamicDistributionGroup -Name "MyDDG" -RecipientFilter {((RecipientType -eq 'UserMailbox') -and (memberOfgroup -eq "CN=MyO365Group_430c61d4-7b32-4b35-957b-644912193d28,OU=MyCompany.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=NAMPR01A004,DC=prod,DC=outlook,DC=com"))}
Works like a charm.
Thanks for looking!
Doug
Oct 19, 2019
You can only use AD attributes such as notes/Title/manager etc. or the 15 custom attributes to build Dyn Distro's and Dynamic groups, you can't use group memberships of other groups to build those out.