Skip to content

feat: tenant-wide site scope (SiteScope: All) + slim README + wiki sidebar - #16

Merged
luigilink merged 3 commits into
mainfrom
feature/site-scope-all
Jul 15, 2026
Merged

feat: tenant-wide site scope (SiteScope: All) + slim README + wiki sidebar#16
luigilink merged 3 commits into
mainfrom
feature/site-scope-all

Conversation

@luigilink

Copy link
Copy Markdown
Owner

Closes #15

Summary

Adds a tenant-wide scope for the site version policy modes, plus documentation housekeeping (slim README, wiki sidebar).

Changes

  • SiteScope: Selected (default) processes SiteUrls; All connects to TenantAdminUrl and enumerates every site collection via Get-PnPTenantSite (OneDrive excluded, optional SiteFilter), applying the policy across the tenant — still gated by the per-site drift check.
  • SiteUrls becomes optional for All (TenantAdminUrl required instead); All is rejected for Legacy mode; a tenant-wide warning is emitted in DryRun.
  • README slimmed to a short intro + Quick links, matching SPSWeather/SPSUserSync; full docs live in the wiki.
  • wiki/_Sidebar.md navigation added; Configuration/Usage document the tenant-wide scope with an impact warning.

Testing

Invoke-Pester -> 99 passed, 0 failed.

Notes

Builds on #14. No breaking change; default SiteScope: Selected preserves existing behaviour.

Add SiteScope ('Selected' default, or 'All'), TenantAdminUrl and SiteFilter
properties. With SiteScope=All the script connects to the tenant admin
center and enumerates every site collection via Get-PnPTenantSite (OneDrive
excluded, optional server-side filter), then applies the version policy to
each - still gated by the per-site drift check. SiteUrls becomes optional
for 'All' (TenantAdminUrl required instead), and 'All' is rejected for the
Legacy per-library mode. A tenant-wide warning is emitted in DryRun.

Refs #15
Add assertions for Get-TenantSiteUrls, Get-PnPTenantSite enumeration,
SiteScope default/validation, TenantAdminUrl requirement, Legacy
rejection and optional SiteUrls. 99 tests pass.

Refs #15
- Document SiteScope/TenantAdminUrl/SiteFilter and the tenant-wide scope
  with an impact warning in the Configuration wiki, plus a Usage example.
- Note SiteScope in CHANGELOG (3.1.0) and RELEASE-NOTES.
- Slim the README down to a short intro + Quick links, matching the other
  luigilink projects (SPSWeather/SPSUserSync); full docs live in the wiki.
- Add wiki/_Sidebar.md navigation.

Refs #15
@luigilink
luigilink merged commit cd4b1a8 into main Jul 15, 2026
1 check passed
@luigilink
luigilink deleted the feature/site-scope-all branch July 15, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tenant-wide site scope (SiteScope: All) via Get-PnPTenantSite

1 participant