While Creating Template from Communication Site ,You may get access denied error. To resolve the error need to do some workaround by powershell using tenant admin credential
Cause: Feature is disabled on tenant level
When you access /_layouts/savetmpl.aspx , access denied may occur. It happens because the denyaddandcustomizepages of this site is true. DenyAddAndCustomizePages determines whether the Add And Customize Pages right is denied on the site collection.
Run below command with tenant credential or who has admin rights on admin site collection
$adminUPN="user@tenant.onmicrosoft.com"
$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."
Connect-SPOService -Url https://tenant-admin.sharepoint.com -Credential $userCredential
set-sposite https://tenant.sharepoint.com/sites/communication -denyaddandcustomizepages $false
No comments:
Post a Comment