How can I find out which user groups my domain user belongs to?
Open a command prompt.
Type: net user <userName> /domain
It will list both Local and Global groups that user belongs to.
If you want it to only list the groups, you can use Find to filter it:
net user <userName> /domain | find "Group"
This has worked in all (NT) version of Windows since at least NT 4.
On Vista/2008 and above, you can also use WhoAmI /Groups
to get a verbose list of group memberships (including their UIDs, etc.) for the current user.
Related videos on Youtube
Bender the Greatest
Husband, father, engineer, musician, and retrocomputing-enthusiast
Updated on September 18, 2022Comments
-
Bender the Greatest over 1 year
Running Windows 7 on my work PC, how can I check which groups I am a part of on the domain from my PC? I know how to check the local groups using MMC (Microsoft Management Console), just not the groups managed on the domain. I do not have remote access to our domain controller to check this, as we use a proprietary admin tool to access the server and licensing prevents additional installation.
-
Taegost almost 11 yearsIs it an Active Directory domain, or something else?
-
Bender the Greatest almost 11 yearsActive Directory, sorry
-
-
James almost 11 yearsnice. didn't know about this. FWIW it also works on 2008 R2 (not just Win7 as question is tagged with)
-
Bender the Greatest almost 11 yearsthis worked, i also just found out that WHOAMI /GROUPS also shows more verbose information about the groups you are a member of as well
-
Ƭᴇcʜιᴇ007 almost 11 yearsI forgot about WHOAMI /groups, Old habits I guess, the Net User command has been around since NT 4 days. :) I'll add that to my answer to round it out.
-
JonnyRaa over 9 yearsthis post is also useful serverfault.com/questions/49405/… shows how to get all the users in a group
-
t0r0X about 9 yearsThis is not helpful, because the group names are truncated to 21 characters. A better solution, which also does not require extra software, is here serverfault.com/a/594724/66588
-
Ƭᴇcʜιᴇ007 about 9 years@Vistor Feel free to add an additional answer instead of claiming the existing answer is not helpful (18 people disagree ;) ) and just posting a link. The more answers the better. :)
-
Zitrax over 8 yearsAlso the group list can span several lines but the find command only shows the first.