Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]- Get-PnPUser -WithRightsAssignedDetailed cmdlet does not return permissions for files from the library #4733

Open
1 of 6 tasks
vishwasdm opened this issue Feb 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@vishwasdm
Copy link

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

  1. Ensure that the Library permissions are Inheriting from the Site permissions
  2. Create a folder or file within the library
  3. Share the folder or file with Manage access option and Grant Access to any user (ex. [email protected])
Image Image 4. After connecting to the site using Connect-PnpOnline, run the Get-PnPUser -WithRightsAssignedDetailed cmdlet and check the user (ex. [email protected]) 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)

Image

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
@vishwasdm vishwasdm added the bug Something isn't working label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant