Skip to content

Conversation

@gautamdsheth
Copy link
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #5154

What is in this Pull Request ?

Added requested parameters to the cmdlets

…ockDownloadPolicy to Set-PnPSite and Set-PnPTenantSite
Copilot AI review requested due to automatic review settings November 16, 2025 19:01
Copilot finished reviewing on behalf of gautamdsheth November 16, 2025 19:03
Copy link
Contributor

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 adds two new parameters to the Set-PnPSite and Set-PnPTenantSite cmdlets to support block download policy configuration for SharePoint groups. This addresses issue #5154.

Key changes:

  • Added ExcludeBlockDownloadSharePointGroups parameter to exempt specific SharePoint groups from block download policy
  • Added ReadOnlyForBlockDownloadPolicy parameter to enable read-only mode for blocked downloads

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/Commands/Site/SetSite.cs Added two new parameters and their implementation logic, updated IsTenantProperty method to include the new parameters
src/Commands/Admin/SetTenantSite.cs Added two new parameters and their implementation logic in SetSiteProperties method
documentation/Set-PnPSite.md Added documentation for the two new parameters
documentation/Set-PnPTenantSite.md Added documentation for the two new parameters

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@gautamdsheth gautamdsheth merged commit c2c1b30 into dev Nov 16, 2025
4 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.

Add support for ExcludeBlockDownloadSharePointGroups and ReadOnlyForBlockDownloadPolicy in Set-PnPSite

2 participants