Break Site Inheritance feature

Jul 17, 2014 at 8:28 PM
Edited Jul 17, 2014 at 8:29 PM
I've implemented this feature but haven't added it to this codeplex project. I added it to subsites.psm1. I'm not sure this is already implemented elsewhere. If I hear nothing back then I'll assume it's not currently on the plans and will merge it here in a few weeks.

Love the rest of the modules -!!!! Thanks !!!!
function Break-SiteInheritance {
  [CmdletBinding()]
  param
  (
    [Parameter(Mandatory=$true, Position=1)]
    [bool]$copyRoleAssignments = $false,
        
    [Parameter(Mandatory=$false, Position=2)]
    [bool]$clearSubscopes = $true
  )

  $clientContext.Web.BreakRoleInheritance($copyRoleAssignments,$clearSubscopes);
}
Jul 30, 2014 at 4:01 PM
Thanks man! Gonna add it!