PowerShell\'s Get-ADGroupMember cmdlet returns members of a specific group. Is there a cmdlet or property to get all the groups that a particular user is a member of?
This should provide you the details for current user. Powershell not needed.
whoami /groups