Auditing External SharePoint Sharing with PowerShell and Microsoft Graph
· 5 min read
Sharing links make collaboration easy, but they can also leave files accessible to people outside your organisation. When you need a tenant-wide view of where external access exists, checking sites one at a time quickly becomes tedious.
This PowerShell script uses Microsoft Graph to inventory SharePoint sites and inspect the sharing permissions on their drive items. It reports anonymous links and external direct shares, and can optionally include internal sharing links in a CSV report.