Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-PnPSiteTemplate: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) #1087

Open
majariomya opened this issue Nov 12, 2024 · 2 comments

Comments

@majariomya
Copy link

When I trying to apply .xml template to a SharePoint Site using "Invoke-PnPSiteTemplate" command. Getting error "Invoke-PnPSiteTemplate: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))".

Please help me to resolve this issue.

Thanks in advance.

@jrudley
Copy link

jrudley commented Dec 5, 2024

I am getting the same error with the ga release and the latest nightly build.

@jrudley
Copy link

jrudley commented Dec 6, 2024

Looks like I got around it by setting this to false Set-PnPTenantSite -Url '' -DenyAddAndCustomizePages:$false

apply template

then set it back to true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants