I spent many days reading about how "Custom scripts" work for sharepoint online, but i can not fully understand it. for example we have this case.
- inside SP admin center >> Settings >> we have custom scripts disabled as follow:-
now using the office 365 admin (who is also a sharepoint admin), i created 2 sites (modern communication site + classic team site).
so now i got these "custom script" setting for the site collections:-
- our build-in root site collection (which is a classic team site)--> custom scripts is Disabled.
- the modern site collection --> custom scripts is Disabled.
- the classic team site which i created --> custom scripts is Enabled!!
so i have the following questions:-
since we have prevent custom scripts inside the "SharePoint admin center", then how custom script was enabled inside the classic team site i have created?
if we allow custom scripts from the "SharePoint admin center", then i assume this will affect future site collections, but will it also affect all our current 3 site collections?
if i want to enable custom scripts for our modern communication site collection ONLY. so can i do so? or as a first step i will need to enable custom scripts from "SharePoint admin center" ?
if i want to add a script to a classic page. can i Temporary enable custom script on the intended site >> add the custom script >> disable custom script inside the site collection? will the script keep working as-is even if we disable custom script on the site?
final question inside the "SharePoint admin center" >> "Custom Script", they use the word "Prevent users" & "Allow users".. so what do users represent? does it cover office 365 & sharepoint admins? or users refer to non-admin users?
Thanks in advance for any help.