SharePoint Online SPOMod: Restore-SPOListItemInheritance
This article describes a function of a custom SharePoint Online module available for download and installation at GitHub.
Restore-SPOListItemInheritance
Restores permission inheritance for a list item.
Parameters
ListTitle | Mandatory | Name of the list |
ItemID | Mandatory | ID of the item |
Examples
----- EXAMPLE 1 ------
Restore permission inheritance for a single item.
Restore-SPOListItemInheritance -ListTitle MyList6 -ItemID 5
----- EXAMPLE 2 ------
Restore permission inheritance for all items in the list.
$items=(Get-SPOListItems).ID
foreach($item in $items){Restore-SPOListItemInheritance -ListTitle MyList6 -ItemID $item}
See Also
SPOMod Cmdlets and Resources
Get-SPOList
Remove-SPOListItemInheritance
PowershellScripts @ GitHub