SHD / MC Checker

MC1117115 | Updates to custom scripting in sites and Classic Publishing site creation



MC1117115 | Updates to custom scripting in sites and Classic Publishing site creation

Classification planForChange
Last Updated 07/18/2025 00:07:08
Start Time 07/18/2025 00:06:36
End Time 11/15/2026 08:00:00
Message Content

We are implementing the following changes to custom scripting and classic publishing in SharePoint Online.

1. Disablement of custom scripting

Custom scripting will be disabled by default (setting DenyAddAndCustomizePages to 1 or $true) for sites created with the following templates:

  • BLANKINTERNETCONTAINER#0 = Classic Publishing Portal Site
  • CMSPUBLISHING#0 = Classic Publishing Site
  • BLANKINTERNET#0 = Classic Publishing Site Blank
  • CSPCONTAINER#0 = SharePoint Embedded Site

Refer to this documentation to learn more about the security considerations of ungoverned scripting.

2. Ability to set site property bag valued without requiring custom scripting enablement.

Users no longer need to set DenyAddAndCustomizePages to $false or 0 (i.e. enable custom scripting) in a site to manage site property bag values. We have introduced a new AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled setting at the site level and at the tenant level to allow adding/managing site property bag values. Please see documentation here for tenant level setting and here for the site level setting. 

3. Classic publishing sites creation and feature activation changes

Users will no longer be able to create new classic publishing related site collections or activate publishing features in existing site collections. This applies to both UX and API interactions.

Sites collections with the following templates cannot be created:

  • BLANKINTERNETCONTAINER#0 = Publishing Portal Site
  • CMSPUBLISHING#0 = Publishing Site
  • BLANKINTERNET#0 = Publishing Site Blank
  • ENTERWIKI#0 = Enterprise Wiki
  • SRCHCEN#0 = Enterprise Search Center
  • SPSSITES#0 = Site Directory
  • SPSNHOME#0 = News Home Site
  • PRODUCTCATALOG#0 = Product Catalog
  • SPSREPORTCENTER#0 = Report Center
  • SPSTOPIC#0 = Topic Area Template

Existing classic publishing enabled site collections are unaffected and can continue regular usage, including creation of sub sites.

[When this will happen]

Both changes, the extended custom scripting governance and the new classic publishing restrictions, will take effect starting September 15, 2025.

[How this will affect your organization]

  • When custom scripting is disabled in classic publishing sites, users will no longer be able to use script editor web parts, create custom master pages or page layouts, and utilize several other features. More details on features affected when custom scripting is disabled can be viewed in this documentation.

  • With the change to stop the creation of new classic publishing site collections and publishing feature activation, SharePoint admins will no longer be able to create new classic publishing enabled site collections or enable publishing features at site collection level.

[What you need to do to prepare]

We recommend taking the following actions to prepare for these upcoming changes.

1. Inform owners of the classic publishing sites in your organization of these upcoming changes. Promote switching to use of Modern sites. Refer to this guide.

2. To temporarily opt out of the custom scripting enforcement in classic publishing sites for your tenant until March 15, 2026, use the following PowerShell command:

Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites $true

3. To temporarily opt out of custom scripting enforcement for a specific site (with any template) with tenant admin approval (effective for 24 hours), use the following PowerShell command:

Set-SPOSite <SiteURL> -DenyAddAndCustomizePages $false

4. If you need to allow the creation of new classic publishing site collections or enable publishing feature activations, use the following PowerShell command set the flag to allow.

Set-SPOTenant -AllowClassicPublishingSiteCreation $true

NOTE:

  • You need to install the latest (16.0.26211.12010 or higher) SharePoint Online Management Shell in order to run the commands above.
  • The DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites command is scheduled to end starting on March 15, 2026, while all other commands are expected to remain functional beyond that date. 

[Compliance considerations]


There is no impact or change to compliance.

[Referenced content]

Security considerations of allowing custom script – SharePoint in Microsoft 365 | Microsoft Learn

Allow or prevent custom script – SharePoint in Microsoft 365 | Microsoft Learn

SharePoint modernization guidance | Microsoft Learn

Machine Translation

SharePoint Online のカスタム スクリプトと従来の発行に次の変更を実装しています。

1. カスタムスクリプトの無効化

カスタム スクリプトは、次のテンプレートで作成されたサイトに対して既定で無効になります (DenyAddAndCustomizePages を 1 または $true に設定)。

  • BLANKINTERNETCONTAINER#0 = クラシックパブリッシングポータルサイト
  • CMSPUBLISHING#0 = クラシック パブリッシング サイト
  • BLANKINTERNET#0 = クラシック発行サイトの空白
  • CSPCONTAINER#0 = SharePoint 組み込みサイト

管理されていないスクリプトのセキュリティに関する考慮事項の詳細については、 このドキュメント を参照してください。

2.カスタムスクリプトを有効にすることなく、サイトのプロパティバッグを価値に設定する機能。

ユーザーは、サイトのプロパティ バッグの値を管理するために、サイトで DenyAddAndCustomizePages を $false または 0 に設定する (つまり、カスタム スクリプトを有効にする) 必要がなくなりました。サイト プロパティ バッグ値の追加/管理を許可するために、サイト レベルとテナント レベルで新しい AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled 設定が導入されました。 テナント レベルの設定 については こちら を、 サイト レベルの設定については こちら のドキュメントを参照してください。 

3. 従来の発行サイトの作成と機能のアクティブ化の変更

ユーザーは、新しいクラシック発行関連のサイト コレクションを作成したり、既存のサイト コレクションで発行機能をアクティブ化したりすることができなくなります。これは、UXとAPIの両方のインタラクションに適用されます。

次のテンプレートを持つサイト コレクションは作成できません。

  • BLANKINTERNETCONTAINER#0 = ポータルサイトの公開
  • CMSPUBLISHING#0 = 発行サイト
  • BLANKINTERNET#0 = 公開サイトが空白
  • ENTERWIKI#0 = エンタープライズウィキ
  • SRCHCEN#0 = エンタープライズ検索センター
  • SPSSITES#0 = サイト ディレクトリ
  • SPSNHOME#0 = ニュースホーム サイト
  • PRODUCTCATALOG#0 = 製品カタログ
  • SPSREPORTCENTER#0 = レポート センター
  • SPSTOPIC#0 = トピック領域テンプレート

既存の従来の発行が有効なサイト コレクションは影響を受けず、サブサイトの作成など、通常の使用を続行できます。

【いつ実現するのか】

拡張されたカスタムスクリプティングガバナンスと新しいクラシックパブリッシング制限の両方の変更は、 2025年9月15日から有効になります。

[これが組織に与える影響]

  • 従来の発行サイトでカスタム スクリプトを無効にすると、ユーザーはスクリプト エディター Web パーツを使用したり、カスタム マスター ページやページ レイアウトを作成したり、その他のいくつかの機能を利用したりすることができなくなります。カスタムスクリプトが無効になっている場合に影響を受ける機能の詳細については、 このドキュメントを参照してください。

  • 新しいクラシック発行サイト コレクションの作成と発行機能のアクティブ化を停止する変更により、SharePoint 管理者は新しいクラシック発行が有効なサイト コレクションを作成したり、サイト コレクション レベルで発行機能を有効にしたりできなくなります。

【準備に必要なこと】

これらの今後の変更に備えるために、次のアクションを実行することをお勧めします。

1. 組織内の従来の発行サイトの所有者に、これらの今後の変更を通知します。モダン サイトの使用への切り替えを促進します。 このガイドを参照してください。

2. 2026 年 3 月 15 日まで、テナントのクラシック発行サイトでのカスタム スクリプトの適用を一時的にオプトアウトするには、次の PowerShell コマンドを使用します。

Set-SPOTenant -DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites $true

3. テナント管理者の承認 (24 時間有効) を使用して、特定のサイト (任意のテンプレートを使用) に対するカスタム スクリプトの適用を一時的にオプトアウトするには、次の PowerShell コマンドを使用します。

Set-SPOSite <SiteURL> -DenyAddAndCustomizePages $false

4. 新しいクラシック発行サイト コレクションの作成を許可するか、発行機能のアクティブ化を有効にする必要がある場合は、次の PowerShell コマンドを使用してフラグを allow に設定します。

Set-SPOTenant -AllowClassicPublishingSiteCreation $true

手記:

  • 上記のコマンドを実行するには、最新の (16.0.26211.12010 以降) SharePoint Online 管理シェルをインストールする必要があります。
  • DelayDenyAddAndCustomizePagesEnforcementOnClassicPublishingSites コマンドは 2026 年 3 月 15 日から終了する予定ですが、他のすべてのコマンドはその日付を超えて引き続き機能することが期待されます。 

【コンプライアンス上の留意事項】


コンプライアンスへの影響や変更はありません。

【参考にした内容】

カスタム スクリプトを許可する場合のセキュリティに関する考慮事項 – Microsoft 365 の SharePoint |マイクロソフト ラーン

カスタム スクリプトを許可または禁止する – Microsoft 365 の SharePoint |マイクロソフト ラーン

SharePoint の最新化ガイダンス |マイクロソフト ラーン