Did you look to see if anyone may have already written such a thing? I think not!
scripts-to-list-and-export-all-shared-mailboxes-and-users-who-have-access-rights
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Powershell command to export a list of users in shared mailbox.
Answer accepted by question author
Did you look to see if anyone may have already written such a thing? I think not!
scripts-to-list-and-export-all-shared-mailboxes-and-users-who-have-access-rights