Reset-KFPermissionInheritance [-Item <list-item>] [-ThrowErrors[:$true]]
>= kenaflow 1.0.0
This command can be used to reset the inheritance of permissions on a list item if permission inheritance was stopped before.
The list element can be specified with parameter
-Item. If it is not specified, the list element for which the workflow is currently being executed is used.
If permission inheritance was not stopped before the item permissions are not changed.
Obviously the cmdlet is only available for SharePoint workflows.
The SharePoint list item to be processed.
This is a default parameter for all kenaflow cmdlets. If set to
$true(default!) the engine will pass exception within the cmdlet to the script for further handling.
$myItem = Get-PnPListItem -List "Custom List" -Id 1 Stop-KFPermissionInheritance -Item $myItem Reset-KFPermissionInheritance -Item $myItem