{"id":1893,"date":"2016-05-27T18:53:37","date_gmt":"2016-05-27T18:53:37","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=1893"},"modified":"2016-05-27T18:53:37","modified_gmt":"2016-05-27T18:53:37","slug":"how-to-get-all-groups-that-a-user-is-a-member-of","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=1893","title":{"rendered":"How to get all groups that a user is a member of?"},"content":{"rendered":"<p>Open PowerShell with administrator privileges and run:<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang-bsh prettyprint prettyprinted\"><code><span class=\"typ\">Get<\/span><span class=\"pun\">-<\/span><span class=\"typ\">ADPrincipalGroupMembership<\/span><span class=\"pln\"> username <\/span><span class=\"pun\">|<\/span><span class=\"pln\"> select name\r\n\r\nname\r\n<\/span><span class=\"pun\">----<\/span>\r\n<span class=\"typ\">Domain<\/span> <span class=\"typ\">Users<\/span>\r\n<span class=\"typ\">Domain<\/span> <span class=\"typ\">Computers<\/span>\r\n<span class=\"typ\">Workstation<\/span> <span class=\"typ\">Admins<\/span>\r\n<span class=\"typ\">Company<\/span> <span class=\"typ\">Users<\/span>\r\n<span class=\"typ\">Company<\/span> <span class=\"typ\">Developers<\/span>\r\n<span class=\"typ\">AutomatedProcessingTeam\r\n\r\n\r\nExample:\r\n<a href=\"http:\/\/microsoftgeek.com\/?attachment_id=1894#main\" rel=\"attachment wp-att-1894\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-1894\" src=\"http:\/\/microsoftgeek.com\/wp-content\/uploads\/2016\/05\/PS.png\" alt=\"PS\" width=\"772\" height=\"347\" srcset=\"https:\/\/microsoftgeek.com\/wp-content\/uploads\/2016\/05\/PS.png 772w, https:\/\/microsoftgeek.com\/wp-content\/uploads\/2016\/05\/PS-300x135.png 300w, https:\/\/microsoftgeek.com\/wp-content\/uploads\/2016\/05\/PS-768x345.png 768w\" sizes=\"auto, (max-width: 772px) 100vw, 772px\" \/><\/a>\r\n<\/span><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Open PowerShell with administrator privileges and run: &nbsp; Get-ADPrincipalGroupMembership username | select name name &#8212;- Domain Users Domain Computers Workstation Admins Company Users Company Developers AutomatedProcessingTeam Example:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,59],"tags":[],"class_list":["post-1893","post","type-post","status-publish","format-standard","hentry","category-ad","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1893","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=1893"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1893\/revisions"}],"predecessor-version":[{"id":1895,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1893\/revisions\/1895"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}