T The Triage ManualTechnical Guides for IT Emergencies
P4 · Active Directory

Listing AD group memberships for a user with 'net user /domain'

The 'net user' command queries the local SAM by default and does not accept 'DOMAIN\user' syntax, so attempts to enumerate Active Directory group memberships fail. Appending the '/domain' switch with the bare sAMAccountName redirects the query to the current logged-on domain controller and returns the user's global and local group memberships.

Indicators

Likely causes

Diagnostic steps

  1. Open an elevated command prompt on a domain-joined workstation logged into the target AD domain.
  2. Run 'net user <localaccount>' to confirm the command works against the local SAM.
  3. Run 'net user <sAMAccountName> /domain' to query the AD account against the current logon domain controller.
  4. Review the 'Local Group Memberships' and 'Global Group Memberships' fields in the output to enumerate group membership.
  5. If the user resides in another domain or forest, log on from a workstation in that domain or use 'dsquery'/'dsget' / PowerShell 'Get-ADPrincipalGroupMembership' instead.

Resolution path

Prevention

Tools

References

active-directorynet-usergroup-membershipcommand-linesysadminenumeration