Skip to content

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

@vishwasdm

Description

@vishwasdm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions