user access to distribution lists and unified group

Rising Flight 3,731 Reputation points
2020-09-24T05:01:53.52+00:00

Hi All
i have 5 users in a csv file and i want to know to which distribution lists and unified groups they have access to. how do i export this information to a csv file. experts guide me on this.

Below is my csv file.

Users
user1@Company portal .com
user2@Company portal .com

Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
586 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,661 questions
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,187 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,354 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ashok M 6,506 Reputation points
    2020-10-01T11:53:33.843+00:00

    Hi,

    Please refer the scripts available in the below links,

    https://social.technet.microsoft.com/Forums/en-US/9a8f028c-db75-4659-8c70-984ab57ad5cc/get-list-of-distribution-groups-that-user-is-a-member-of?forum=winserverpowershell

    https://vladtalkstech.com/2018/03/find-all-the-distribution-groups-a-user-is-a-member-of-with-powershell.html

    https://vladtalkstech.com/2018/03/find-all-the-office-365-groups-a-user-is-a-member-of-with-powershell.html

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Also, suggest to run the powershell commands in a test environment before trying in production.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Eric Yin-MSFT 4,386 Reputation points
    2020-09-25T02:22:21.043+00:00

    For Exchange command Add-MailboxFolderPermission, parameter "-user" should be a user or security group.
    So I'm not understanding what do you mean about "which distribution lists and unified groups they have access to", a user mailbox cannot access any distribution group in Exchange aspect.
    You might post it on incorrect forum, please confirm the tag you added.


    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.


  2. Rising Flight 3,731 Reputation points
    2020-10-01T08:55:19.343+00:00

    i want to know these users are members of how many distribution lists and unified groups