none
Need a SPO script to fetch all users and their permission details for all folders/subfolders of given document library. RRS feed

  • Question

  • Hello Team,

    Need SPO (SharePoint Online) script to fetch all users(inside any SharePoint group/directly added) and their permission details for all folders/sub folders of given document library.

    It should also includes those folders that have unique permission , in short all folders and sub folders within sub folders/folders means items level.



    Sushma

    Wednesday, November 20, 2019 10:32 AM

All replies

  • Hi Sushma,

    You can check the post below to use PowerShell command to get the permission report:

    SharePoint Online: Site Collection Permissions Report using PowerShell

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best regards,

    Grace Wang


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Thursday, November 21, 2019 6:27 AM
    Moderator
  • Thanks for your response.

    But I already saw shared link but This Power Shell script generates permission report on all objects which has unique permissions on the given site collection.

    But I need all permission inherited/unique for all folders/sub folders of particular document library.


    Sushma

    Thursday, November 21, 2019 11:50 AM
  • Hi Sushma,

    You can use PnP PowerShell to get files and folders permissions within a document library in SharePoint Online.

    Check the similar post:

    Retrieve Permissions at folder and file level in Powershell

    SharePoint Online PowerShell Script to view permissions on library folders

    Best regards,

    Grace Wang


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Tuesday, November 26, 2019 9:49 AM
    Moderator
  • Hello Wang,

    Thanks for your response.

    But i need SharePoint Online script only to fetch data for all folders/subfolders of given list.


    Sushma

    Tuesday, December 3, 2019 7:31 AM