Forum Discussion
Viral Naik
Mar 26, 2019Copper Contributor
Get-PnPGroup -AssociateOwnerGroup and listing groups where subsites not inheriting permission
I am trying to list all the owners group of subsites using below but does not give me actual owners group.
$subwebs = (Get-PnPSubWebs -Recurse)
foreach($subweb in $subwebs)
{
Get-PnPGroup -AssociatedOwnerGroup
}
This gives me only one Owners group of top level site for all the subsites, even if i have got some subsite which does not inherit the permission from parent.
No RepliesBe the first to reply