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.
Exports SharePoint site collection administrators across an explicit site scope while isolating sites that cannot be read.
Generated locally in your browser · Runs in your PowerShell environment · Review before running
Exports SharePoint site collection administrators across an explicit site scope while isolating sites that cannot be read.
Configure Export SharePoint site collection administrators in the Builder, review the generated PowerShell and run it in your own environment.
Exports administrators from one site, a CSV list of sites, or all tenant sites. Site-list input requires a SiteUrl column. Tenant-wide mode is intentionally serial and can be slow.
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.
Exports SharePoint site collection administrators across an explicit site scope while isolating sites that cannot be read. 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 reads site collection administrator membership for the selected sites and does not change site administrators.
Output: CSV report with SiteUrl, AdminDisplayName, AdminLoginName, AdminEmail, PrincipalType, IsPrimaryOrKnownOwner, CollectionStatus and Error.
This template is available in the free library and is generated locally in your browser.
Exports SharePoint site collection administrators across an explicit site scope while isolating sites that cannot be read.
Enter the required values in the Builder, review the generated script and confirm the output before running it.