Forum Discussion
Dynamic DL or group based on org hierarchy?
If you need a dynamic DL, those exist only in Exchange Online (not Azure AD) and you must use the Exchange cmdlets:
New-DynamicDistributionGroup manager -RecipientFilter {(Manager -eq 'CN=user,OU=tenant.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=EURPR03A001,DC=prod,DC=outlook,DC=com') -and (RecipientType -eq 'UserMailbox')}
where you need to provide the full DN of the manager.
- jerome317Jun 13, 2019Brass Contributor
VasilMichev wrote:If you need a dynamic DL, those exist only in Exchange Online (not Azure AD) and you must use the Exchange cmdlets:
New-DynamicDistributionGroup manager -RecipientFilter {(Manager -eq 'CN=user,OU=tenant.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=EURPR03A001,DC=prod,DC=outlook,DC=com') -and (RecipientType -eq 'UserMailbox')}
where you need to provide the full DN of the manager.
VasilMichev- you can do it in Azure AD with the 'modern DL' called Office365 Groups haha using Microsoft verbiage here!
- VasilMichevJun 13, 2019MVP
I know you can, but using dynamic membership for "modern" groups is *paid* functionality, as in requires Azure AD Premium licensing. While using good old fashioned dynamic DGs in Exchange Online is free.
- CG-1717Jun 17, 2019Brass Contributor
Thank you for your responses here! We will look into these approaches and see what works for us! I really appreciate the feedback!
Cristina