From 58095cb8397d11682a2560584711b996842cf343 Mon Sep 17 00:00:00 2001 From: Camille Malonzo Date: Tue, 23 Jan 2024 14:18:00 -0800 Subject: [PATCH 1/2] Update Set-SPOTenant.md for -DelayDenyAddAndCustomizePagesEnforcement --- .../sharepoint-online/Set-SPOTenant.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md index e1833b182..67b8ce1b4 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md @@ -128,6 +128,7 @@ Set-SPOTenant [-ApplyAppEnforcedRestrictionsToAdHocRecipients ] [-AllowAnonymousMeetingParticipantsToAccessWhiteboards ] [-LabelMismatchEmailHelpLink ] [-DisableBackToClassic ] + [-DelayDenyAddAndCustomizePagesEnforcement ] [] ``` @@ -2428,6 +2429,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DelayDenyAddAndCustomizePagesEnforcement +In the SharePoint admin center, there is a Custom Scripts setting that controls whether users can run custom scripts in OneDrive. This setting will be removed on March 2024. By removing this setting, Administrators will no longer be able to control the default behavior on self service creates sites or personal sites. However, customers will still be able to temporarily enable the ability to run custom script by setting `Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcement $true`. This will keep the setting available until May 2024. + +For more information, see [Allow or prevent custom script](https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script) + +The valid values are: + +False (default) - Blocked from setting custom scripts setting. +True - Able to set customs scripts setting to true on sites until May 2024. + +```yaml +Type: Boolean +Parameter Sets: (All) +Aliases: +Applicable: SharePoint Online +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ## RELATED LINKS [Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online) From 308b5ca0e7d0b45f8034d99cc261ad3d273a8d36 Mon Sep 17 00:00:00 2001 From: Camille Malonzo Date: Thu, 25 Jan 2024 14:41:36 -0800 Subject: [PATCH 2/2] Update language --- .../sharepoint-online/Set-SPOTenant.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md index 67b8ce1b4..179a8a587 100644 --- a/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md +++ b/sharepoint/sharepoint-ps/sharepoint-online/Set-SPOTenant.md @@ -2430,14 +2430,17 @@ Accept wildcard characters: False ``` ### -DelayDenyAddAndCustomizePagesEnforcement -In the SharePoint admin center, there is a Custom Scripts setting that controls whether users can run custom scripts in OneDrive. This setting will be removed on March 2024. By removing this setting, Administrators will no longer be able to control the default behavior on self service creates sites or personal sites. However, customers will still be able to temporarily enable the ability to run custom script by setting `Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcement $true`. This will keep the setting available until May 2024. - -For more information, see [Allow or prevent custom script](https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script) +This parameter controls how SharePoint will deal with sites where custom scripts are allowed. The valid values are: -False (default) - Blocked from setting custom scripts setting. -True - Able to set customs scripts setting to true on sites until May 2024. +* False (default) - for site collections where administrators enabled the ability to add custom script, SharePoint will revoke that ability within 24 hours from the last time this setting was changed. +* True - All changes performed by administrators to custom script settings are preserved. When the value is set to true, a banner shows in the active sites list of the SharePoint tenant admin center informing that changes to custom scripts are permanent. + +> [!NOTE] +> This setting affects all sites. There are no options to preserve changes to custom script settings only on some specific sites. This parameter will be available until May 2024. After that time, administrators can still allow custom scripts on specific sites, but that change will be revoked automatically after up to 24 hours. + +For more information, see [Allow or prevent custom script](https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script) ```yaml Type: Boolean @@ -2446,7 +2449,7 @@ Aliases: Applicable: SharePoint Online Required: False Position: Named -Default value: None +Default value: False Accept pipeline input: False Accept wildcard characters: False ```