Skip to content

Add WhoCanShareAllowListInTenantByPrincipalIdentity support to Set-PnPTenant#5322

Merged
gautamdsheth merged 3 commits into
pnp:devfrom
vascoazevedo08:dev
May 30, 2026
Merged

Add WhoCanShareAllowListInTenantByPrincipalIdentity support to Set-PnPTenant#5322
gautamdsheth merged 3 commits into
pnp:devfrom
vascoazevedo08:dev

Conversation

@vascoazevedo08
Copy link
Copy Markdown
Contributor

Type

  • Bug Fix
  • New Feature
  • Sample

What is in this Pull Request ?

  • Adds support for the existing SharePoint Online tenant property WhoCanShareAllowListInTenantByPrincipalIdentity.
  • Introduces a new parameter to the Set-PnPTenant cmdlet to configure the allow list of principal identities permitted to share content.
  • Uses the modern ByPrincipalIdentity pattern, aligning with other tenant settings and avoiding legacy CSOM ACL XML configuration.
  • Updates cmdlet logic to support setting and clearing the allow list.
  • Adds the corresponding property to the SPOTenant model with documentation.
  • Aligns with existing properties such as GuestSharingGroupAllowListInTenantByPrincipalIdentity.

Vasco Azevedo and others added 3 commits May 20, 2026 11:41
Introduce new parameter to Set-Tenant cmdlet for specifying principal identities allowed to share content at the tenant level. Update cmdlet logic to handle assignment and clearing of this list. Add corresponding property to SPOTenant model with documentation.
@gautamdsheth gautamdsheth merged commit 5d96b0c into pnp:dev May 30, 2026
3 checks passed
@gautamdsheth
Copy link
Copy Markdown
Collaborator

Thanks @vascoazevedo08 , awesome stuff !! Much appreciated this

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