Access to multiple Dynamic distribution lists

Chopra 126 Reputation points
2021-09-28T21:10:14.867+00:00

How can I add a user to multiple Dynamic distribution lists in O365?

Exchange | Exchange Server | Management
0 comments No comments
{count} votes

Accepted answer
  1. Joyce Shen - MSFT 16,701 Reputation points
    2021-09-29T05:44:29.697+00:00

    Hi @Chopra

    Maybe you could simply use four Custom attributes which represent whether this department can be accessed by user
    Custom attribute1 (is able to access Marketing)
    Custom attribute2 (is able to access distribution )
    Custom attribute3 (is able to access accounting )
    Custom attribute4 (is able to access financial )

    So the ddg for different department will be like
    Set-DynamicDistributionGroup -Identity 'marketing' -RecipientFilter {(department -eq 'Marketing') -or (CustomAttribute1 -eq 'enable')}
    Set-DynamicDistributionGroup -Identity 'distribution ' -RecipientFilter {(department -eq 'distribution ') -or (CustomAttribute2 -eq 'enable')}
    .......

    If a user needs to access marketing and accounting, his Custom attribute1 and Custom attribute3 will be set as 'enable'

    And If I have any misuderstanding or mistake about the above idea, please correct me.


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Joyce Shen - MSFT 16,701 Reputation points
    2021-09-29T02:16:42.167+00:00

    Hi @Chopra

    Unlike regular distribution groups that contain a defined set of members, the membership list for dynamic distribution groups is calculated each time a message is sent to the group, based on the filters and conditions that you define. When an email message is sent to a dynamic distribution group, it's delivered to all recipients in the organization that match the criteria defined for that group.

    If you want to add a spacific user to Dynamic DL, you may need to add a condition in -RecipientFilter like this: -or (alias -eq 'USERNAME')

    Get-DynamicDistributionGroup -Identity 'NAME'  
    Set-DynamicDistributionGroup -Identity 'NAME' -RecipientFilter {(ORIGINAL FILTER) -or (alias -eq 'USERNAME')}  
    

    Refer to the official document to get more information about Manage dynamic distribution groups in Exchange Server


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.