web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to list the access...
Power Automate
Unanswered

How to list the access rights for the documents and folders in a SharePoint Document Library.

(0) ShareShare
ReportReport
Posted on by 6
Hello, in a SharePoint Online Document Library, files and folders have been stored and in addition to the normal site access rights, some documents and folders have been shared with users and have different access rights. Is it possible to have a report or with all the folders and files in the library and the corresponding list of authorized users for an immediate and general check, or a column with the list of users or groups with whom the document has been shared?
Thank you.
Categories:
I have the same question (0)
  • DJ_Jamba Profile Picture
    2,837 Moderator on at
    Try:

     
    Uri:
    _api/lists/getbytitle('YOUR LIST OR LIBRARY NAME')/RoleAssignments?$expand=Member/Users,RoleDefinitionBindings
     
  • MD-09011334-0 Profile Picture
    6 on at
    Thank you for the response, DJ Jamba.
    I tried your suggestion and it works well. However, in the log output, the access groups are listed but not the users with whom a folder or file has been shared. In the meantime, I found that from the 'Site Usage' menu at the bottom, there is 'Run Report' which produces a CSV file with the list of files or folders shared with specific permissions. Is it possible to generate the same report with a Power Automate flow and save everything in a SharePoint list?
    Thank you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard