Does anyone know the PnPPowershell-code for gettings all the members of a certain SharePoint-group (in my case the Visitor-group).
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
You need to use
Use it as mentioned below where
Identity would be the title of the group:
Get-PnPGroupMembers -Identity "Visitors Group Name"
Reference - Get-PnPGroupMembers
You can also use
Get-PnPGroup command as well:
$group = Get-PnPGroup -Identity "Visitors Group Name" -Includes Users $group.Users
Reference - Get-PnPGroup