-
Notifications
You must be signed in to change notification settings - Fork 398
Description
Reporting an Issue or Missing Feature
The Get-PnPUser -WithRightsAssignedDetailed cmdlet doesn't get the permissions for files or folders (which have unique permissions within the library) that are shared directly with users when the library is set to inherit permissions.
Expected behavior
The Get-PnPUser -WithRightsAssignedDetailed cmdlet is supposed to show the permissions for files and folders that have their own unique permissions, no matter what the library permissions are. It's kind of like how it works with lists.
Actual behavior
The Get-PnPUser -WithRightsAssignedDetailed cmdlet doesn't get the permissions for files or folders (which have unique permissions within the library) that are shared directly with users when the library is set to inherit permissions. It returns the permissions of files and folders only when library is set to Unique permissions. This is not the case with List.
Steps to reproduce behavior
- Ensure that the Library permissions are Inheriting from the Site permissions
- Create a folder or file within the library
- Share the folder or file with Manage access option and Grant Access to any user (ex. ABC@xyz.com)
4. After connecting to the site using Connect-PnpOnline, run the Get-PnPUser -WithRightsAssignedDetailed cmdlet and check the user (ex. ABC@xyz.com) permissions. It does not get the permissions.
What is the version of the Cmdlet module you are running?
The issue is on both PnP.Powershell 2.12 and 1.12 (with powershell 5.X)
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify