PnP-PowerShell
PnP-PowerShell copied to clipboard
Set-PnPFolderPermission with -InheritPermissions switch parameter not restoring inheritance on folder
Reporting an Issue or Missing Feature
Set-PnPFolderPermission with -InheritPermissions Switch parameter not working as expected. Has this happened to anyone else before?
Expected behavior
That the folder has inherited permissions from the library itself that it resides in.
Actual behavior
There aren't even any errors when running the PowerShell. When viewing the permissions on the folder, there is still the option to "delete unique permissions".
Steps to reproduce behavior
Running the command:
Get-PnPFolder -Url 'Shared Documents\Folder' | Set-PnPFolderPermission -List 'Documents' -InheritPermissions
Which version of the PnP-PowerShell Cmdlets are you using?
- [ ] PnP PowerShell for SharePoint 2013
- [x ] PnP PowerShell for SharePoint 2016
- [x] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
SharePointPnPPowerShell2016 3.18.2002.0
How did you install the PnP-PowerShell Cmdlets?
- [ ] MSI Installed downloaded from GitHub
- [x ] Installed through the PowerShell Gallery with Install-Module
- [ ] Other means
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.