How can I find out which user groups my domain user belongs to?

250,399

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.

Share:
250,399

Related videos on Youtube

Bender the Greatest
Author by

Bender the Greatest

Husband, father, engineer, musician, and retrocomputing-enthusiast

Updated on September 18, 2022

Comments

  • Bender the Greatest
    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
      Taegost almost 11 years
      Is it an Active Directory domain, or something else?
    • Bender the Greatest
      Bender the Greatest almost 11 years
      Active Directory, sorry
  • James
    James almost 11 years
    nice. didn't know about this. FWIW it also works on 2008 R2 (not just Win7 as question is tagged with)
  • Bender the Greatest
    Bender the Greatest almost 11 years
    this 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
    Ƭᴇcʜιᴇ007 almost 11 years
    I 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
    JonnyRaa over 9 years
    this post is also useful serverfault.com/questions/49405/… shows how to get all the users in a group
  • t0r0X
    t0r0X about 9 years
    This 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
    Ƭᴇ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
    Zitrax over 8 years
    Also the group list can span several lines but the find command only shows the first.