| MC1117115 | (Updated) Updates to custom scripting in sites and Classic Publishing site creation |
|---|
| Classification | planForChange |
|---|---|
| Last Updated | 01/29/2026 17:41:22 |
| Start Time | 07/18/2025 00:06:36 |
| End Time | 11/15/2026 08:00:00 |
| Message Content |
Updated January 29, 2026: We are updating this post as a reminder. 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. The following tenant-level opt-out operation, used to allow custom scripting changes in classic publishing sites, will be retired starting March 15, 2026. Please ensure appropriate actions are taken ahead of this change.
3. Customers may still temporarily opt out of custom scripting enforcement for a specific site (any template) with tenant admin approval. This opt-out is effective for 24 hours and can be enabled using 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 |
2026年1月29日更新:この投稿はリマインダーとして更新しています。今後のSharePoint Onlineの変更は、あなたの組織に影響を与える可能性があります。以下の内容を必ずご確認ください。 SharePoint Onlineでカスタムスクリプトとクラシックパブリッシングに以下の変更を加えています。 1. カスタムスクリプトの無効化 以下のテンプレートで作成されたサイトでは、デフォルトでDenyAddAndCustomizePagesを1または$trueに設定してカスタムスクリプトを無効にします。
注:
アンガバンドスクリプトのセキュリティ上の考慮事項については 、このドキュメント を参照してください。 2. カスタムスクリプトの有効化を必要とせずにサイトプロパティバッグの評価を設定できる能力。 ユーザーはもはや、サイト内でDenyAddAndCustomizePagesを$falseまたは0に設定する必要(つまりカスタムスクリプトを有効にする)必要がなくなり、サイトのプロパティバッグの値を管理できます。サイトレベルとテナントレベルで新しいAllowWebPropertyBagUpdateWhenDenyAndCustomizePagesIsEnabled設定を導入し、サイトプロパティバッグの値の追加・管理を可能にしました。 テナントレベルの設定 についてはこちらのドキュメント、サイト レベルの設定はこちらをご覧ください。 3. クラシックな出版サイトの作成および機能アクティベーションの変更 ユーザーは既存のサイトコレクションで新しいクラシック出版関連のサイトコレクションを作成したり、公開機能を有効化したりできなくなります。これはUXとAPIのやり取りの両方に当てはまります。 以下のテンプレートを用いたサイトコレクションは作成できません:
既存のクラシック出版対応サイトコレクションは影響を受けず、サブサイトの作成を含む定期的な利用を継続できます。 [いつ起こるか] 拡張されたカスタムスクリプトガバナンスと新しいクラシックな公開制限の両方の変更は 、2025年9月15日から施行されます。 【これがあなたの組織にどのような影響を与えるか】
【準備のためにやるべきこと】 これらの今後の変更に備えるために、以下の行動を取ることを推奨します。
1. 組織内のクラシックな出版サイトのオーナーにこれらの今後の変更を知らせること。モダンサイトの利用への切り替えを促進しましょう。 このガイドを参照してください。 2. 従来の出版サイトでカスタムスクリプト変更を可能にするために使用された以下のテナントレベルのオプトアウト操作は 、2026年3月15 日より廃止されます。この変更に先立ち、適切な対応が取られるようにしてください。
3. 顧客はテナント管理者の承認を得て、特定のサイト(任意のテンプレート)に対するカスタムスクリプト強制を一時的にオプトアウトすることができます。このオプトアウトは24時間 有効で、以下のPowerShellコマンドで有効化できます:
4. 新しいクラシック出版サイトコレクションの作成や公開機能の有効化を許可する必要がある場合は、以下のPowerShellコマンドを使用してフラグを許可に設定してください。
注:
[コンプライアンスの考慮事項]
コンプライアンスに影響を与えたり変更したりすることはありません。 [参考文献] カスタムスクリプトを許可する際のセキュリティ上の考慮事項 – Microsoft 365におけるSharePoint |Microsoft Learn カスタムスクリプトの許可または禁止 – Microsoft 365におけるSharePoint |Microsoft Learn SharePointモダナイゼーションガイダンス |Microsoft Learn
|