Skip to content

Add -DefaultMainLinkScope parameter to Set-PnPTenantSite and Set-PnPSite cmdlets - #5486

Merged
gautamdsheth merged 1 commit into
devfrom
feat/DefaultMainLinkScope-params
Oct 7, 2026
Merged

gautamdsheth merged 1 commit into
devfrom
feat/DefaultMainLinkScope-params

Conversation

@gautamdsheth

Copy link
Copy Markdown
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes NA

What is in this Pull Request ?

Support for defaultmainlinkscope parameter in cmdlets

Copilot AI balanced review requested due to automatic review settings October 7, 2026 18:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The PR modifies the owner-maintained changelog contrary to its repository instruction.

1 open finding
What changed in this PR

Adds -DefaultMainLinkScope support for configuring SharePoint main-link audiences.

Changes:

  • Adds the optional parameter to both site-setting cmdlets.
  • Exposes the setting through Get-PnPTenantSite.
  • Updates cmdlet documentation.
File Description
src/​Commands/​Site/​SetSite.cs Adds and applies the parameter.
src/​Commands/​Admin/​SetTenantSite.cs Adds tenant-admin support.
src/​Commands/​Model/​SPOSite.cs Exposes the returned value.
documentation/​Set-PnPSite.md Documents the new parameter.
documentation/​Set-PnPTenantSite.md Documents the new parameter.
CHANGELOG.md Adds a release-note entry.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CHANGELOG.md
@gautamdsheth
gautamdsheth merged commit 359dc14 into dev Oct 7, 2026
6 checks passed
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.

2 participants