DenyAddAndCustomizePages for office 365 group morden site and OneDrive for Business
From this article, using the following powershell command we can Turn scripting capabilities on for specified site.
Set-SPOsite <SiteURL> -DenyAddAndCustomizePages 0
It doesn't work for group site and onedrive for business site. We can set Custom Script value to Allow users to run custom script on personal sites in SharePoint admin. All onedrive for business site will turn on it after 24 hours.
But how to turn on for group site?
Modern sites are NOSCRIPT sites. Even if you enable DenyAddAndCustomizePages it will revert in 24 hours. JSLink is also not available and being replaced with SPFX.
Looks like this is working now for Group sites as well as opposed to only Team sites before.
Adam Wang commented
No, just waiting for update from MS.
i am facing the same issue.did you resolve the issue.
Seems a lot like custom scripts aren't working for O365 Group team sites. Please consider making these sites full team sites with all features including this one.
(The issue for me is, I cannot set a JSLink on a column to customize its rendering, on a new todo list I added to the group site)