Benjamin Bettan
Benjamin Bettan

Reputation: 91

Having groups of specified user

Is it possible to get groups of specified user? If it's possible, I need the query please.

Upvotes: 0

Views: 62

Answers (1)

RahulKumarShaw
RahulKumarShaw

Reputation: 4602

I tried with this command and able to get the groups name of specified user.

Get-ADPrincipalGroupMembership username | select name

enter image description here

Reference : https://spgeeks.devoworx.com/get-groups-in-which-a-user-is-a-member-using-cmd/

Upvotes: 1

Related Questions