What it works with
Module: PnP.PowerShell
Context: PowerShell 7.4+ · SharePoint Online · PnP.PowerShell
Compatibility: PowerShell 7.4+ is required by current PnP.PowerShell releases.
Finds sites whose effective sharing capability permits external users or anonymous links and explains the matched state.
Generated locally in your browser · Runs in your PowerShell environment · Review before running
Finds sites whose effective sharing capability permits external users or anonymous links and explains the matched state.
Configure Find SharePoint sites that allow external sharing in the Builder, review the generated PowerShell and run it in your own environment.
Filters site sharing capability without crawling files or links. You can include sites restricted to existing directory guests or focus on sites that allow new external users/anonymous links.
Current PnP.PowerShell releases require PowerShell 7.4 or later. Interactive authentication requires your own Entra application/client ID, or a default client ID that you have configured for PnP.PowerShell. Opselith does not connect to SharePoint or run the script on your behalf.
Finds sites whose effective sharing capability permits external users or anonymous links and explains the matched state. Review these details before generating or running the script.
Module: PnP.PowerShell
Context: PowerShell 7.4+ · SharePoint Online · PnP.PowerShell
Compatibility: PowerShell 7.4+ is required by current PnP.PowerShell releases.
Permissions: AllSites.Read · SharePoint Administrator
Risk: Low
Execution impact: Read-only. The script filters SharePoint tenant site metadata and does not alter external-sharing configuration or sharing links.
Output: CSV report with SiteUrl, Title, SharingCapability, AllowsNewExternalUsers, AllowsAnonymousLinks, GroupConnected and Owner.
This template is available in the free library and is generated locally in your browser.
Finds sites whose effective sharing capability permits external users or anonymous links and explains the matched state.
Enter the required values in the Builder, review the generated script and confirm the output before running it.