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..c78e89d16 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 @@ -875,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 @@ -2816,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: @@ -3516,6 +3526,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 +3796,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