Add-PnPPage: Access denied. #714
Unanswered
Peter-Wxin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Add-PnPPage: Access denied. You do not have permission to perform this action or access this resource.
Excuse me, I'm Site Collection Admin and Global SharePoint Admin and ran "-DenyAddAndCustomizePages 0", but neither of my accounts was able to create a Home page to an SPO site using these latest cmdlets:
Connect-PnPOnline
Add-PnPPage
The weird thing is the legacy cmdlets worked well as this post instructed:
Connect-PnPOnline -Url "https://yourtenant.sharepoint.com/sites/yoursite" Add-PnPClientSidePage -Name Home -LayoutType Home
How about you? Any idea?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions