Several times I’ve had a need to figure out which AD groups I’m part of compared to somebody else. Typically somebody whose access is broken. Most often than not, a new joiner.
There are several ways an end user without any elevated privileges can find this information.
To find yours in a directory environment, execute one of the followings.
PS >> Get-ADPrincipalGroupMembership <username> | select name
CMD >> whoami /groups
CMD >> gpresult /r
CMD >> net user /domain <your-username>
Tags: Security Servers Windows