From 19b6deef73f7e073eb13f11bd705e9407eed50fb Mon Sep 17 00:00:00 2001 From: hildar007 <98509254+hildar007@users.noreply.github.com> Date: Thu, 30 Apr 2026 13:32:48 -0700 Subject: [PATCH 1/3] Add domain restriction parameters for file preview Added parameters for file preview domain restrictions in Set-SPOTenant. --- .../Set-SPOTenant.md | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md index 11dd322d3..f639af47f 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md @@ -145,6 +145,8 @@ Set-SPOTenant [-MinCompatibilityLevel ] [-MaxCompatibilityLevel ] [-RestrictResourceAccountAccess ] [-RestrictExternalSharingForAgents ] [-AllowFileArchive ] [-AllowFileArchiveByDefault ] [] [-EnableNotificationsSubscriptions ] + [-IsFilePreviewDomainRestrictionEnabled ] + [-FilePreviewAllowedDomainList ] ``` ### ParameterSetContentTypeSyncSiteTemplatesList @@ -3516,6 +3518,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FilePreviewAllowedDomainList + +Specifies the list of domains that are allowed for file preview. +Use a semicolon-delimited list of domain names. For example: `contoso.com;fabrikam.com`. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: String.Empty +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -FileTypesForVersionExpiration An array of file type names. The supported file type names are: @@ -3769,6 +3788,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -IsFilePreviewDomainRestrictionEnabled + +Enables or disables domain-based restrictions for file preview. + +When set to $true, SharePoint restricts file preview to the domains specified in -FilePreviewAllowedDomainList.When set to $false, domain restrictions are disabled and file preview is allowed for all domains, regardless of the allow list configuration.This setting affects the embedded preview experiences. + +PARAMVALUE: True | False + +```yaml +Type: System.Boolean +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: False +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -IsFluidEnabled > Applicable: SharePoint Online From 0248367871b7d5da581d007a805b3c83183c5af9 Mon Sep 17 00:00:00 2001 From: hildar007 <98509254+hildar007@users.noreply.github.com> Date: Thu, 30 Apr 2026 16:18:40 -0700 Subject: [PATCH 2/3] Add example for domain restriction in file preview Added example for restricting file preview to specified domains. --- .../Set-SPOTenant.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md index f639af47f..e831b710a 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md @@ -877,6 +877,14 @@ Set-SPOTenant -RemoveVersionExpirationFileTypeOverride @("Video", "Audio") This example removes any specific version history limit override set for video and audio file types on all new document libraries at tenant level. +### EXAMPLE 26 + +```powershell +Set-SPOTenant -IsFilePreviewDomainRestrictionEnabled $true -FilePreviewAllowedDomainList "contoso.com;fabrikam.com" +``` + +This example restricts file preview to the specified domains. When domain restriction is enabled, only files embedded from the listed domains can be previewed, in addition to predefined trusted Microsoft domains (for example, teams.microsoft.com). + ## PARAMETERS ### -AIBuilderModelScope @@ -3792,7 +3800,7 @@ Accept wildcard characters: False Enables or disables domain-based restrictions for file preview. -When set to $true, SharePoint restricts file preview to the domains specified in -FilePreviewAllowedDomainList.When set to $false, domain restrictions are disabled and file preview is allowed for all domains, regardless of the allow list configuration.This setting affects the embedded preview experiences. +When set to `$true`, SharePoint restricts file preview to the domains specified in `-FilePreviewAllowedDomainList`. When set to `$false`, domain restrictions are disabled and file preview is allowed for all domains, regardless of the allow list configuration. This setting affects the embedded preview experiences. PARAMVALUE: True | False From e0c95eda1a3a3856c8f98cd0cb8e5a4f2774ea23 Mon Sep 17 00:00:00 2001 From: Ruchika Mittal Date: Fri, 1 May 2026 05:50:33 +0530 Subject: [PATCH 3/3] typo fix --- .../Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md index e831b710a..c78e89d16 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOTenant.md @@ -2826,7 +2826,7 @@ Accept wildcard characters: False ### -DocumentUnderstandingModelScope -This parameter allows administrators to limit which SharePoint sites the document understanding model and [unstructurted document processesing](/microsoft-365/syntex/document-understanding-overview) premium feature is available on. +This parameter allows administrators to limit which SharePoint sites the document understanding model and [unstructured document processing](/microsoft-365/syntex/document-understanding-overview) premium feature is available on. The valid values are: