{"id":2907,"date":"2019-09-25T09:22:53","date_gmt":"2019-09-25T13:22:53","guid":{"rendered":"https:\/\/www.extrafudge.com\/site\/?p=2907"},"modified":"2022-03-15T14:59:45","modified_gmt":"2022-03-15T18:59:45","slug":"get-list-of-ad-groups-a-user-is-a-member-of","status":"publish","type":"post","link":"https:\/\/www.extrafudge.com\/site\/2019\/09\/get-list-of-ad-groups-a-user-is-a-member-of\/","title":{"rendered":"Get list of AD groups a user is a member of"},"content":{"rendered":"<p>In powershell to get the groups that a user belongs to on a specific domain (that you have access to but is not the primary domain) (replace username with the username and the domainname with the domain you want to use) type the following:<\/p>\n<p>(Get-ADUser username -server domainname \u00e2\u20ac\u201cProperties MemberOf).MemberOf<\/p>\n<p>To get general info you can use this:<\/p>\n<p>Get-ADUser username -Server domainname<\/p>\n<p>If it&#8217;s on the same domain you can just use the net command under command prompt: \u00a0 Change username to the username you want to inquier<\/p>\n<p>net user \/domain username<\/p>\n<p>&nbsp;<\/p>\n<p><strong>If this helped you please please <a title=\"Buy me coffee !\" href=\"http:\/\/goo.gl\/0cg2uu\" target=\"_blank\" rel=\"noopener\">consider buying me coffee!<\/a>\u00a0 Thanks in advance!<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In powershell to get the groups that a user belongs to on a specific domain (that you have access to but is not the primary domain) (replace username&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","_seo_fixer_meta_description":"","_seo_fixer_focus_keyword":"","footnotes":""},"categories":[42],"tags":[282,279,280,277,278,281],"class_list":["post-2907","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-ad","tag-another","tag-different","tag-domain","tag-groups","tag-user"],"_links":{"self":[{"href":"https:\/\/www.extrafudge.com\/site\/wp-json\/wp\/v2\/posts\/2907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.extrafudge.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.extrafudge.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.extrafudge.com\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.extrafudge.com\/site\/wp-json\/wp\/v2\/comments?post=2907"}],"version-history":[{"count":0,"href":"https:\/\/www.extrafudge.com\/site\/wp-json\/wp\/v2\/posts\/2907\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.extrafudge.com\/site\/wp-json\/wp\/v2\/media?parent=2907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.extrafudge.com\/site\/wp-json\/wp\/v2\/categories?post=2907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.extrafudge.com\/site\/wp-json\/wp\/v2\/tags?post=2907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}