| MC1117115 | (Updated) Updates to custom scripting in sites and Classic Publishing site creation |
|---|
| Classification | planForChange |
|---|---|
| Last Updated | 09/02/2025 13:16:30 |
| Start Time | 07/18/2025 00:06:36 |
| End Time | 11/15/2026 08:00:00 |
| Message Content |
Updated September 2, 2025: Upcoming SharePoint Online changes may impact your organization. Please review the below. 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:
NOTE:
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:
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]
[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:
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:
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.
NOTE:
[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 |
2025 年 9 月 2 日更新: 今後の SharePoint Online の変更は、組織に影響を与える可能性があります。以下を確認してください。 SharePoint Online のカスタム スクリプトとクラシック発行に次の変更を実装しています。 1. カスタムスクリプトの無効化 カスタム スクリプトは、次のテンプレートで作成されたサイトに対して既定で無効になります (DenyAddAndCustomizePages を 1 または $true に設定します)。
手記:
管理されていないスクリプトのセキュリティに関する考慮事項の詳細については、 このドキュメント を参照してください。 2. カスタム スクリプトの有効化を必要とせずに、サイト プロパティ バッグの価値を設定する機能。 ユーザーは、サイト プロパティ バッグ値を管理するために、サイトで DenyAddAndCustomizePages を $false または 0 に設定する (つまり、カスタム スクリプトを有効にする) 必要がなくなりました。サイト プロパティ バッグ値を追加/管理できるように、サイト レベルとテナント レベルで新しい AllowWebPropertyBagUpdateWhenDenyAddAndCustomizePagesIsEnabled 設定が導入されました。 テナントレベルの設定 についてはこちらのドキュメントを、 サイトレベルの設定についてはこちらのドキュメントを参照してください。 3. クラシック発行サイトの作成と機能のアクティブ化の変更 ユーザーは、従来の発行関連のサイト コレクションを新たに作成したり、既存のサイト コレクションで発行機能をアクティブ化したりできなくなります。これは、UX と API の両方のインタラクションに当てはまります。 次のテンプレートを含むサイト コレクションは作成できません。
既存のクラシック発行が有効なサイト コレクションは影響を受けず、サブサイトの作成など、通常の使用を継続できます。 【いつになるか】 拡張されたカスタム スクリプト ガバナンスと新しいクラシック パブリッシング制限の両方の変更は、 2025 年 9 月 15 日から有効になります。 [これがあなたの組織に与える影響]
【準備に必要なこと】 これらの今後の変更に備えるために、次のアクションを実行することをお勧めします。
1. 組織内のクラシック発行サイトの所有者に、これらの今後の変更を通知します。モダンサイトの使用への切り替えを促進します。 このガイドを参照してください。 2. 2026 年 3 月 15 日まで、テナントのクラシック発行サイトでのカスタム スクリプトの適用を一時的にオプトアウトするには、次の PowerShell コマンドを使用します。
3. テナント管理者の承認 (24 時間有効) を使用して、特定のサイト (任意のテンプレートを使用) のカスタム スクリプトの適用を一時的にオプトアウトするには、次の PowerShell コマンドを使用します。
4. 新しいクラシック発行サイト コレクションの作成を許可したり、発行機能のアクティブ化を有効にしたりする必要がある場合は、次の PowerShell コマンドを使用してフラグを許可に設定します。
手記:
【コンプライアンスに関する考慮事項】
コンプライアンスへの影響や変更はありません。 【参考コンテンツ】 カスタム スクリプトを許可する場合のセキュリティに関する考慮事項 – Microsoft 365 の SharePoint |Microsoft Learn カスタム スクリプトを許可または禁止する – Microsoft 365 の SharePoint |Microsoft Learn SharePoint の最新化ガイダンス |Microsoft Learn
|