Cannot upload content template with Scripting Disabled
This should be a simple task for any Site Owner but with scripting disabled by default by Microsoft, site owners are unable to upload/update content type templates.
This impacts Modern Sites as the only way to enable scripting on modern sites is with PowerShell and that is on a site by site basis.
The admin center setting does not apply to Group Sites.
- On Any site, Set-SPOsite <site url> -DenyAddAndCustomizePages 1
- Create Doc Library & Set it to Allow Management of CTs
- Go To Site Settings > Site Content types & Create a new CT - Type: Document Content Types
Once created click on advanced Settings to upload your template – choose an Excel or Word Doc
Notice Access Denied Error due to missing AddAndCustomizePages permissions
Set-SPOsite <site url> -DenyAddAndCustomizePages 0
Attempt to add template again
Works as expected
Robert Bogue commented
Mike - This hasn't really been solved. This doesn't associate the template with a content type and therefore makes it hard to manage with the other tools that we expect to use to manage content types -- or document classes in an organization. It shouldn't take DenyAddAndCustomizePages to upload a content type template.
Mike Saunders commented
This issue has been solved with changes to the Modern Library view where the new menu has options for uploading templates and ordering the new menu.