Skip to content

Instantly share code, notes, and snippets.

@beckettkev
Created May 13, 2015 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beckettkev/f2b824e9bde9ecb13235 to your computer and use it in GitHub Desktop.
Save beckettkev/f2b824e9bde9ecb13235 to your computer and use it in GitHub Desktop.
$ctx = New-Object Microsoft.SharePoint.Client.ClientContext($tenancySiteCollectionUrl)
$ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Username,$securePassword)
$group = $ctx.get_web().get_siteGroups().getByName($groupName);
$group.set_onlyAllowMembersViewMembership($false)
$group.update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment