pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

Set-PnPFolderPermission with -InheritPermissions switch parameter not restoring inheritance on folder #2704

Open BrianDeJesus opened 4 years ago

BrianDeJesus commented 4 years ago

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?

What is the version of the Cmdlet module you are running?

SharePointPnPPowerShell2016 3.18.2002.0

How did you install the PnP-PowerShell Cmdlets?

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.