I have been tasked with finding our site's SharePoint groups that have the Group Setting "Who can view the membership of the group?" set to Group Members. Is there a search feature or PowerShell command that can provide this?


Try below snippet

$site = Get-SPSite("http://siteurl");

foreach($subweb in $site.AllWebs){
    foreach($group in $subweb.Groups)
        if($group.OnlyAllowMembersViewMembership -eq $true)
            write-host $group.Name


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.