Hello everyone,
I want to generate a list of all SharePoint sites in the tenant, showing the owners and members for each site, and, if possible, the visitors as well.
I have been experimenting with the following modules:
-
PnP.PowerShell
- May work, but appears to require an enterprise application with Full Control permissions in SharePoint.
Microsoft.Online.SharePoint.PowerShell (SPO)
- Requires the user or application to have access to all SharePoint sites that should be included in the report.
Microsoft Graph
- I have not been able to retrieve all required data using Graph alone, or I have not yet found a way to do so.
I want to avoid requiring an application or user account with full write access to all SharePoint sites in the tenant.
Is it possible to access these data, without granting full access?
Any help or pointers would be greatly appreciated.