How to get all groups that a user is a member of?

Open PowerShell with administrator privileges and run:

 

Get-ADPrincipalGroupMembership username | select name

name
----
Domain Users
Domain Computers
Workstation Admins
Company Users
Company Developers
AutomatedProcessingTeam


Example:
PS