Skip to content

Adds command spo site accessrequest setting set. Closes #6267#7010

Merged
MartinM85 merged 4 commits intopnp:mainfrom
MathijsVerbeeck:add-spo-site-accessrequest-setting-set
Mar 18, 2026
Merged

Adds command spo site accessrequest setting set. Closes #6267#7010
MartinM85 merged 4 commits intopnp:mainfrom
MathijsVerbeeck:add-spo-site-accessrequest-setting-set

Conversation

@MathijsVerbeeck
Copy link
Copy Markdown
Contributor

Closes #6267

Copilot AI review requested due to automatic review settings October 16, 2025 06:15
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements a new SharePoint Online command spo site accessrequest setting set that allows users to configure access request settings for a specific site. The command supports disabling access requests, routing them to the site owner group, or routing them to a specific email address, with optional custom messaging.

Key Changes

  • Adds new command to configure SharePoint site access request settings
  • Implements comprehensive validation for mutually exclusive options
  • Includes extensive test coverage with 100% code coverage

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/m365/spo/commands/site/site-accessrequest-setting-set.ts Main command implementation with validation and API calls to SharePoint REST endpoints
src/m365/spo/commands/site/site-accessrequest-setting-set.spec.ts Comprehensive test suite covering validation scenarios and execution paths
src/m365/spo/commands.ts Adds command constant for registration
docs/src/config/sidebars.ts Updates documentation sidebar navigation
docs/docs/cmd/spo/site/site-accessrequest-setting-set.mdx Command documentation with usage examples and permissions
.devproxy/api-specs/sharepoint.yaml Adds API specifications for the SharePoint REST endpoints used

Comment thread src/m365/spo/commands/site/site-accessrequest-setting-set.ts Outdated
Comment thread src/m365/spo/commands/site/site-accessrequest-setting-set.ts Outdated
Comment thread src/m365/spo/commands/site/site-accessrequest-setting-set.spec.ts Outdated
Comment thread docs/docs/cmd/spo/site/site-accessrequest-setting-set.mdx Outdated
Copilot AI review requested due to automatic review settings October 16, 2025 06:24
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Comment thread src/m365/spo/commands/site/site-accessrequest-setting-set.spec.ts Outdated
Comment thread src/m365/spo/commands/site/site-accessrequest-setting-set.ts Outdated
Comment thread docs/docs/cmd/spo/site/site-accessrequest-setting-set.mdx Outdated
@martinlingstuyl martinlingstuyl added the hacktoberfest-accepted Accept for hacktoberfest, will merge later label Oct 29, 2025
@milanholemans
Copy link
Copy Markdown
Contributor

@MathijsVerbeeck, could you align this PR with the latest version of Zod? This will improve the review process.

@milanholemans milanholemans marked this pull request as draft January 15, 2026 16:16
@MathijsVerbeeck MathijsVerbeeck force-pushed the add-spo-site-accessrequest-setting-set branch from 4546314 to e679b2b Compare February 22, 2026 19:03
@MathijsVerbeeck MathijsVerbeeck marked this pull request as ready for review February 22, 2026 19:03
Comment thread docs/docs/cmd/spo/site/site-accessrequest-setting-set.mdx Outdated
@milanholemans milanholemans marked this pull request as draft March 6, 2026 22:28
@MathijsVerbeeck MathijsVerbeeck marked this pull request as ready for review March 6, 2026 22:36
@MartinM85 MartinM85 self-assigned this Mar 18, 2026
Copy link
Copy Markdown
Contributor

@MartinM85 MartinM85 left a comment

Choose a reason for hiding this comment

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

Great work @MathijsVerbeeck. No comments from my side.
Approved.

@MartinM85 MartinM85 merged commit 823fd20 into pnp:main Mar 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted Accept for hacktoberfest, will merge later pr-merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New command: spo site accessrequest setting set

5 participants