feat: tenant-wide site scope (SiteScope: All) + slim README + wiki sidebar - #16
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #15
Summary
Adds a tenant-wide scope for the site version policy modes, plus documentation housekeeping (slim README, wiki sidebar).
Changes
Selected(default) processesSiteUrls;Allconnects toTenantAdminUrland enumerates every site collection viaGet-PnPTenantSite(OneDrive excluded, optionalSiteFilter), applying the policy across the tenant — still gated by the per-site drift check.SiteUrlsbecomes optional forAll(TenantAdminUrlrequired instead);Allis rejected forLegacymode; a tenant-wide warning is emitted in DryRun.Testing
Invoke-Pester-> 99 passed, 0 failed.Notes
Builds on #14. No breaking change; default
SiteScope: Selectedpreserves existing behaviour.