Use Graph APIs to Create a Report of Files in a SharePoint Online Site



I wanted to create a report listing all the files in a SharePoint Online site. I couldn't find an out-of-the-box way to do this, so I wrote a PowerShell script using Graph API requests to retrieve the data and create the report. The script is rough and ready and only processes the default document library, but it's a start and does what I need it to do. Feel free to improve the code!

0 Replies