Skip to content

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

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

Open
1 of 6 tasks
vishwasdm opened this issue Feb 8, 2025 · 1 comment
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. ABC@xyz.com)
Image Image 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)

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
@vishwasdm
Copy link
Author

is this known issue or bug? Can anyone please look into this? We would like to use this for cloning the permissions of the user to another.

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