Cli-microsoft365: No command to Allow/Prevent custom script on a site

Created on 17 Apr 2020  路  3Comments  路  Source: pnp/cli-microsoft365

One can enable/disable custom scripts on modern sites using the below powershell cmdlet
Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0

There is no equivalent of this in O365 cli.

question

Most helpful comment

Apologies, my bad. The command you provided worked just fine. Might I suggest to capture/link to the corresponding SPO Powershell equivalent for commands in the O365 CLI documentation so that it is easier to search. Thanks.

All 3 comments

Thank you for reaching out! Have you tried using:

spo site classic set --noScriptSite true

Apologies, my bad. The command you provided worked just fine. Might I suggest to capture/link to the corresponding SPO Powershell equivalent for commands in the O365 CLI documentation so that it is easier to search. Thanks.

Thank you for confirming it's working for you 馃憤 Appreciate your suggestion. Have a great day!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VelinGeorgiev picture VelinGeorgiev  路  3Comments

garrytrinder picture garrytrinder  路  3Comments

waldekmastykarz picture waldekmastykarz  路  3Comments

arjunumenon picture arjunumenon  路  3Comments

rabwill picture rabwill  路  3Comments