DL membership

Roger Roger 5,446 Reputation points
2022-03-07T05:11:22.423+00:00

Hi All

i am using exchange 2016 hybrid environment. we create users in exchange onprem and migrate to exchange online. i have dynamic DLs in exchange online. i have a user lets say user1 i want to know he is member of how many exchange online dynamic DLs. From Azure AD i am not getting his membership info for dynamic DLs, it is showing only for static DLS i.e(From AzureAD under users-->user1 when i click groups i dont see he is member of any dynamic DLs.) experts guide me.

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,386 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,503 questions
{count} votes

Accepted answer
  1. KyleXu-MSFT 26,246 Reputation points
    2022-03-08T01:49:55.347+00:00

    @Roger Roger

    You could use the script below to check which dynamic distribution group this mailbox contained in: Modify this part before running where{$_.Name -eq "user1"})

    $groups = Get-DynamicDistributionGroup -ResultSize unlimited  
      
    foreach ($group in $groups){  
        $Temp = Get-DynamicDistributionGroup -Identity $group.Name  
        If (Get-Recipient -RecipientPreviewFilter ($temp.RecipientFilter) -OrganizationalUnit ($temp.RecipientContainer) | where{$_.Name -eq "user1"}){  
            Write-Host $group.Name  
        }  
    }  
    

    There exists an issue with this script, if user1 is contained in a nested group for this dynamic distribution group, it cannot be found out.

    I suggest you try another way, you can find the correct group even if user1 is contained in a nested group:
    180796-qa-kyle-09-47-03.png

    Create this rule for dynamic distribution group, then send emails to this dynamic distribution group. If user1 received that email, if means user1 contained in that group, other group members will not receive email.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.


    0 comments No comments

0 additional answers

Sort by: Most helpful