{"id":2406,"date":"2017-03-27T06:23:56","date_gmt":"2017-03-27T06:23:56","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=2406"},"modified":"2022-04-22T00:27:01","modified_gmt":"2022-04-22T00:27:01","slug":"how-to-list-all-users-group-membership-in-365","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/random\/how-to-list-all-users-group-membership-in-365","title":{"rendered":"How to list all user&#8217;s group membership in 365"},"content":{"rendered":"<p>Just use this as it accounts for 365 Groups now as well : https:\/\/o365reports.com\/2019\/05\/23\/export-office-365-distribution-group-members-csv\/<\/p><p>&nbsp;<\/p><p>******<br \/>Get Distinguished Name:<\/p><p>get-Mailbox [Username] | fl Name,Distinguishedname<\/p><p>Groups:<\/p><p>get-group -ResultSize Unlimited -Filter &#8216;Members -eq &#8220;[User Distinguished Name]&#8221;&#8216;<\/p><p>Distribution Groups:<\/p><p>Get-DistributionGroup -ResultSize Unlimited -Filter &#8216;Members -eq &#8220;[User Distinguished Name]&#8221;&#8216;<\/p>","protected":false},"excerpt":{"rendered":"<p>Just use this as it accounts for 365 Groups now as well : https:\/\/o365reports.com\/2019\/05\/23\/export-office-365-distribution-group-members-csv\/&nbsp;******Get Distinguished Name:get-Mailbox [Username] | fl Name,DistinguishednameGroups:get-group -ResultSize Unlimited -Filter &#8216;Members -eq &#8220;[User Distinguished [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1206,1790],"class_list":["post-2406","post","type-post","status-publish","format-standard","hentry","category-random","tag-1206","tag-group-membership"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=2406"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2406\/revisions"}],"predecessor-version":[{"id":5679,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/2406\/revisions\/5679"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=2406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=2406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=2406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}