From 4b2de231430b47f1948db5f9b7853b15878da2a4 Mon Sep 17 00:00:00 2001 From: harperhults Date: Thu, 7 May 2026 10:22:45 -0700 Subject: [PATCH 1/3] add DefaultMainLinkScope --- .../Set-SPOSite.md | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md index 03675a6c3..0b56e94b8 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md @@ -58,7 +58,8 @@ Set-SPOSite [-Identity] [-Owner ] [-Title ] [- [-LoopDefaultSharingLinkScope ] [-LoopDefaultSharingLinkRole ] [-RequestFilesLinkEnabled ] [-RequestFilesLinkExpirationInDays ] [-OverrideSharingCapability ] [-DefaultShareLinkScope ] - [-DefaultShareLinkRole ] [-BlockGuestsAsSiteAdmin ] + [-DefaultShareLinkRole ] [-DefaultMainLinkScope ] + [-BlockGuestsAsSiteAdmin ] [-RestrictContentOrgWideSearch ] [-RestrictedContentDiscoveryforCopilotAndAgents ] [-RestrictedAccessControl ] [-RestrictedAccessControlGroups ] [-ListsShowHeaderAndNavigation ] [-HidePeoplePreviewingFiles ] @@ -876,6 +877,32 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DefaultMainLinkScope + +> Applicable: SharePoint Online + +The default audience for main links used in sharing. Applies to all items at the root of the document library. Only audience scope is set by this parameter. The default effective value is `OnlyPeopleAdded`. + +The valid values are: + +- OnlyPeopleAdded +- Organization +- Anyone + +`Anyone` is only available if anonymous links are allowed at the tenant level. If `Anyone` is selected but the site has Anyone links disabled, the effective default falls back to the next most restrictive value. + +```yaml +Type: Microsoft.SharePoint.Sharing.MainLinkAudience +Parameter Sets: ParamSet1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultShareLinkRole > Applicable: SharePoint Online From 30cbf46ed3905750c5595a6d1e1fbe6e20361ff3 Mon Sep 17 00:00:00 2001 From: harperhults Date: Thu, 7 May 2026 10:36:40 -0700 Subject: [PATCH 2/3] change order --- .../Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md index 0b56e94b8..a46b8c2a6 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md @@ -57,9 +57,9 @@ Set-SPOSite [-Identity] [-Owner ] [-Title ] [- [-OverrideBlockUserInfoVisibility ] [-LoopDefaultSharingLinkScope ] [-LoopDefaultSharingLinkRole ] [-RequestFilesLinkEnabled ] [-RequestFilesLinkExpirationInDays ] - [-OverrideSharingCapability ] [-DefaultShareLinkScope ] - [-DefaultShareLinkRole ] [-DefaultMainLinkScope ] - [-BlockGuestsAsSiteAdmin ] + [-OverrideSharingCapability ] [-DefaultMainLinkScope ] + [-DefaultShareLinkScope ] + [-DefaultShareLinkRole ] [-BlockGuestsAsSiteAdmin ] [-RestrictContentOrgWideSearch ] [-RestrictedContentDiscoveryforCopilotAndAgents ] [-RestrictedAccessControl ] [-RestrictedAccessControlGroups ] [-ListsShowHeaderAndNavigation ] [-HidePeoplePreviewingFiles ] From 93fa7bc91fbbcd2f0c2bd07a01384b6bad6ac8a9 Mon Sep 17 00:00:00 2001 From: Ruchika Mittal Date: Fri, 8 May 2026 01:37:19 +0530 Subject: [PATCH 3/3] typo fixes --- .../Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md index a46b8c2a6..82a722277 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOSite.md @@ -843,7 +843,7 @@ Accept wildcard characters: False > Applicable: SharePoint Online -When set to TRUE, the DefaultSharingLinkType will be overriden and the default sharing link will a People with Existing Access link (which does not modify permissions). When set to FALSE (the default), the DefaultSharingLinkType parameter controls the default sharing link type. +When set to TRUE, the DefaultSharingLinkType will be overriden and the default sharing link will be a People with Existing Access link (which does not modify permissions). When set to FALSE (the default), the DefaultSharingLinkType parameter controls the default sharing link type. PARAMVALUE: False | True @@ -1715,7 +1715,7 @@ Accept wildcard characters: False > Applicable: SharePoint Online -Determines whether it should override the sharing capability on its partition. For example, if the tenant sharing capability is `ExternalUserAndGuestSharing`, the core partition sharing capability is `Disabled`, and the sharing capability defined on the site collection is `ExternalUserAndGuestSharing`, the effective site sharing capability should be `Disabled` (the most restrictive one among tenant, partition, and site collecction) if `OverrideSharingCapability` is `false`. If `OverrideSharingCapability` is `true`, it skips checking partition sharing capability and the effective site sharing capability should be `ExternalUserAndGuestSharing`. +Determines whether it should override the sharing capability on its partition. For example, if the tenant sharing capability is `ExternalUserAndGuestSharing`, the core partition sharing capability is `Disabled`, and the sharing capability defined on the site collection is `ExternalUserAndGuestSharing`, the effective site sharing capability should be `Disabled` (the most restrictive one among tenant, partition, and site collection) if `OverrideSharingCapability` is `false`. If `OverrideSharingCapability` is `true`, it skips checking partition sharing capability and the effective site sharing capability should be `ExternalUserAndGuestSharing`. PARAMVALUE: False | True