{"id":3015,"date":"2020-09-03T15:13:25","date_gmt":"2020-09-03T20:13:25","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=3015"},"modified":"2020-09-03T15:16:59","modified_gmt":"2020-09-03T20:16:59","slug":"get-a-list-of-shared-mailboxes-members-and-permissions","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=3015","title":{"rendered":"Get a List of Shared Mailboxes Members and Permissions"},"content":{"rendered":"\n<p>If you want to get a list of members from an O365 shared mailbox using powershell, you can run either command to do so:<\/p>\n\n\n\n<p><strong><span style=\"color:#3b05d1\" class=\"has-inline-color\">Get-Mailbox &#8220;Shared Mailbox Name&#8221; | Get-MailboxPermission | where {$_.user.tostring() -ne &#8220;NT AUTHORITY\\SELF&#8221; -and $_.IsInherited -eq $false} | Format-Table Identity, User, AccessRights \u2013AutoSize<\/span><\/strong><\/p>\n\n\n\n<p>OR<\/p>\n\n\n\n<p><strong><span style=\"color:#4e00a3\" class=\"has-inline-color\">Get-Mailbox &#8220;Shared Mailbox name&#8221; -ResultSize:Unlimited | Get-MailboxPermission |Select-Object Identity,User,AccessRights | Where-Object {($_.user -like &#8216;*@*&#8217;)}|Export-Csv C:\\Temp\\sharedfolders.csv\u00a0 -NoTypeInformation<\/span><\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Output example:<\/p>\n\n\n\n<p>Get-Mailbox &#8220;Shared Mailbox Name&#8221; | Get-MailboxPermission | where {$_.user.tostring() -ne &#8220;NT AUTHORITY\\SELF&#8221; -and $_.IsInherited -eq $false} | Format-Table Identity, User, AccessRights \u2013AutoSize<\/p>\n\n\n\n<p>Identity User AccessRights<br>&#8212;&#8212;&#8211; &#8212;- &#8212;&#8212;&#8212;&#8212;<br>contoso.com\/Exchange users\/EMEA Help Desk (IT) CONTOSO\\TRedmond {FullAccess}<br>contoso.com\/Exchange users\/EMEA Help Desk (IT) CONTOSO\\Ito {FullAccess}<br>contoso.com\/Exchange users\/APJ Help Desk CONTOSO\\TRedmond {FullAccess}<br>contoso.com\/Exchange users\/APJ Help Desk CONTOSO\\Ako {FullAccess}<br>contoso.com\/Exchange users\/APJ Help Desk CONTOSO\\JChen {FullAccess}<br>contoso.com\/Exchange users\/Contoso PR queries CONTOSO\\TRedmond {FullAccess}<br>contoso.com\/marketing\/Marketing Queries CONTOSO\\TRedmond {FullAccess}<br>contoso.com\/marketing\/Marketing Queries CONTOSO\\Akers {FullAccess}<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to get a list of members from an O365 shared mailbox using powershell, you can run either command to do so: Get-Mailbox &#8220;Shared Mailbox Name&#8221; | Get-MailboxPermission | where {$_.user.tostring() -ne &#8220;NT AUTHORITY\\SELF&#8221; -and $_.IsInherited -eq $false} | Format-Table Identity, User, AccessRights \u2013AutoSize OR Get-Mailbox &#8220;Shared Mailbox name&#8221; -ResultSize:Unlimited | Get-MailboxPermission |Select-Object [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,62,73,60,59],"tags":[],"class_list":["post-3015","post","type-post","status-publish","format-standard","hentry","category-exchange-2013","category-microsoft-exchange-server-2016","category-exchange-server-2019","category-office-365","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3015"}],"version-history":[{"count":4,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3015\/revisions"}],"predecessor-version":[{"id":3019,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/3015\/revisions\/3019"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}