access denied content type policy templates

I was getting access denied error while creating content type policy template in sharepont online. i tried the solution as below to resoleve the issue. let’s disucss how to resolve access denied content type policy templates error. the solution is applicable for the error Access denied uploading template to content type.

  • Navigate to site settings in sharepoint and click on “content type policy template” to create a custom policy template.
Advertisements
site settings option in sharepoint online for the error access denied content type policy templates
site settings in sharepoint
Advertisements

Error “access denied content type policy templates” screenshot as below

access denied content type policy templates
access denied error while creating content type policy templates
Advertisements

Solution

Enable below settings in sharepoint admin center.

  • Allow users to run custom script on personal sites
  • Allow users to run custom script on self-service created sites
enable custom script sharepoint online
enable custom script sharepoint online
Advertisements

Enable Custom script in site

next step to enable cutom script in site using powershell

Connect-SPOService -Url <sharepoint admin center url>
Set-SPOSite -Identity <site url> -DenyAddAndCustomizePages 0
Advertisements

watch the video below to see all steps for your reference

Advertisements



Categories: content type policy templates, Permission, powershell, powershell command, powershell script, sharepoint policy

Tags: , , , , , , , , , , , , , , , , , , , , , , , ,

%d bloggers like this: