This article describes a function of a custom SharePoint Online module available for download and installation at Technet Gallery and GitHub.





Remove-SPOListInheritance

Breaks permission inheritance for a list and grants unique permissions to the list.


Parameters

ListName  Mandatory  Name of the list for which you want to change the permissions settings 
KeepPermissions  Optional Boolean. Defines whether the current permissions should be kept. If set to $false, clears all the assigned permissions and leaves control only for the administrator executing the cmdlet.
By default set to $true.
 


Examples

----- EXAMPLE 1 ------
Remove permission inheritance for a list.
Remove-SPOListInheritance -ListName MyList7





----- EXAMPLE 2 ------
Remove permission inheritance AND permissions for the list.
Remove-SPOListInheritance -ListName MyList6 -KeepPermissions $false







See Also

SPOMod Cmdlets and Resources 
Connect-SPOCSOM
Restore-SPOListInheritance