Powershell get AD groups that user is member of

Use the snippet below to get a list of all AD groups that a certain username is member of. Replace “[username]” with the correct username. Execute this command in a new Powershell window.

Get-ADPrincipalGroupMembership [username] | select name

You should get the following response:

PS C:\Windows\system32> Get-ADPrincipalGroupMembership svc_myapp | select name

Domain Users

Good luck!

By Leendert de Borst

Freelance software architect with 10+ years of experience. Expert in translating complex technical problems into creative & simple solutions.

Leave a comment

Your email address will not be published. Required fields are marked *