How to Get AD User’s Group Membership
To Get User’s security group membership Run below command: Get-ADPrincipalGroupMembership -Identity user | where {$_.groupCategory -eq ‘Security’} | add-adgroupmember -members USER To get all groups that a user is a member of Run below command: Get-ADPrincipalGroupMembership username | select name Name —- Domain Users Domain Computers Workstation Admins Company Users Company Developers AutomatedProcessingTeam You may … Read more