Forum Discussion

john john's avatar
john john
Steel Contributor
Mar 08, 2019

“Custom Script” setting inside the SP admin center is been ignored for modern sites

I did many tests and reading and i did not find a clear answer if the "Custom Script" setting inside the sharepoint admin center affect modern sites (Communication or Team sites) or not. for example i did this test:-

  1. inside the sharepoint admin center >> settings >> Custom Script >> i enable custom script as follow (i did this around 7 days ago):- enter image description here

  2. then if:-

    • I (as the office 365 and sharepoint admin) create a modern site (communication or team)
    • OR any end user directly create a communication modern site or team modern site
    • OR and end user create an office 365 group.

the generated sharepoint modern sites will always have custom script disabled. so can i conclude that the "Custom Script" settings inside the sharepoint admin center does not affect modern sites (Communication or Team sites)? and when the setting mentioned "self-service created sites" this does not cover modern sites created by end users or created through creating office 365 groups?

second point , inside this official documentation Allow or prevent custom script it mentioned the following "If you change this setting for a user's OneDrive or a classic team site, it will be overridden by the Custom Script setting in the admin center within 24 hours." so why this is not happening in my case? i mean why the SP admin center setting (custom script is enabled) did not override the modern sites settings (which have custom scripting disabled)?

 

Thanks.

No RepliesBe the first to reply

Resources