Connection and Profiles
The connection panel is the starting point for every session. It lets you specify your SharePoint Online tenant, authenticate, choose one or more target sites, and save all of that as a reusable profile.
Connection Fields
| Field | Description | Example |
|---|---|---|
| Tenant URL | Root URL of your SharePoint Online tenant | https://contoso.sharepoint.com |
| Client ID | Application (client) ID of your Azure AD App Registration | a1b2c3d4-... |
| Site URL | URL of the target site | https://contoso.sharepoint.com/sites/HR |
| Output folder | Folder where exported reports will be saved | C:\Reports\SharePoint |
⚠️ Note: The Site URL field is automatically managed when you use the multi-site picker. If two or more sites are selected, the field is grayed out and replaced by a button labeled Sites (n).
Connecting
- Fill in all four fields (or load a saved profile).
- Click Connect.
- A browser window opens for interactive Azure AD authentication.
- After signing in, the application confirms the connection and enables all feature tabs.
Authentication tokens are managed by PnP.PowerShell and cached for the duration of the session. Re-authentication is triggered automatically if the token expires.
Profiles
Profiles store your connection settings so you can switch between tenants, sites, or output folders without re-entering everything manually. Profiles are persisted in Sharepoint_Export_profiles.json inside the configured data folder.
Creating a Profile
- Fill in the connection fields.
- Click Save Profile.
- Enter a descriptive name (e.g.
Contoso – HR Site). - Click OK.
Loading a Profile
- Open the Profiles dropdown.
- Select the desired profile.
- All fields are populated automatically.
- Click Connect to authenticate.
Renaming a Profile
- Load the profile you want to rename.
- Click Rename Profile.
- Enter the new name and confirm.
Deleting a Profile
- Open the Profiles dropdown and select the profile.
- Click Delete Profile.
- Confirm the deletion.
⚠️ Note: Deleting a profile only removes the saved settings. It does not disconnect an active session or delete any exported files.
Multi-Site Picker
The site picker lets you browse and select multiple sites from your tenant without knowing their URLs in advance.
Opening the Picker
Click the Browse button next to the Site URL field. The picker opens as a separate panel or dialog.
How It Works
- The application queries the tenant's site collection list using PnP.PowerShell.
- All discovered sites are displayed with their title and URL.
- You can check/uncheck individual sites or use Select All / Deselect All.
- Click Apply to confirm the selection.
Caching Behavior
The list of tenant sites is fetched on first use and cached across sessions. This avoids repeating an expensive tenant-wide query every time you open the picker.
- The cache is stored in the JSON data folder alongside profiles and templates.
- If new sites have been added to the tenant, click Refresh inside the picker to invalidate the cache and fetch a fresh list.
Single vs. Multiple Sites Selected
| # Sites selected | Site URL field | Button label |
|---|---|---|
| 0 | Editable, empty | Browse |
| 1 | Shows the selected site URL | Browse |
| 2 or more | Grayed out (not editable) | Sites (n) |
Profile File Format
[
{
"Name": "Contoso – HR Site",
"TenantUrl": "https://contoso.sharepoint.com",
"ClientId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"SiteUrl": "https://contoso.sharepoint.com/sites/HR",
"OutputFolder": "C:\\Reports\\SharePoint"
}
]
⚠️ Note: The ClientId stored in the profile is not a secret. Authentication always goes through an interactive browser login; no passwords or tokens are stored in the file.
See Also
- Getting Started — Azure AD App Registration and first connection
- Configuration — Changing the data folder where profiles are stored
- Output Files — Profile file naming conventions