Reset-KFPermissionInheritance
Syntax
Reset-KFPermissionInheritance
[-Item <list-item>]
[-ThrowErrors[:$true]]
Support
>= kenaflow 1.0.0
Return
Nothing.
Description
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.
Parameters
[-Item <list-item>]
The SharePoint list item to be processed.
[-ThrowErrors[:$true]]
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.
Example
$myItem = Get-PnPListItem -List "Custom List" -Id 1
Stop-KFPermissionInheritance -Item $myItem
Reset-KFPermissionInheritance -Item $myItem