This question is an exact duplicate of:
one of the most confusing topics in sharepoint online is to understand how the "Custom Script" setting works. let me start from this link which i read Enabling scripting capabilities, where i mentioned that the custom script setting inside the SP center admin will only affect classic sites, here is a quote from the link:-
The solution below will enable scripting capabilities on all Classic SharePoint sites, and it will It takes about 24 hours for this change to take effect.
so i have these questions:-
Q1. so can i conclude that the "custom script" setting at the SP center admin will not affect modern sites, even if these modern sites are self-service created sites? as per my test also, if i enable custom script inside the SP admin center , and end users or SP admin created modern sites, then these sties will have custom scripting disabled. i check the custom script status by running this command
Get-SPOSite -Identity $Url -Detailed | select DenyAddAndCustomizePages?
Q2. inside the settings there are 2 check-boxes one for Self-Service created site while the other is for personal sites? so what are the differences? are the self-service sites, site created by end users? while personal sites are the onedrive sites?
but end user can still create modern sites if they know the url or if they create office 365 groups.. But these self-service sites will always have their custom script disabled by default , regardless of what we specify inside the SP center admin settings, is this correct?
- Q4. if the personal sites refer to OneDrive sites, then are the OneDrive sites considered as modern sites or as classic sites? and how i can check this?