-
Notifications
You must be signed in to change notification settings - Fork 145
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
Getting Access Denied error while checking out Master Page Gallery using pnp C# code #1060
Comments
Hi, you will need to provide an alternative service principal since the app PnP Management Shell has been removed: https://pnp.github.io/powershell/articles/registerapplication.html |
Hi Paul, |
If you grant it the needed permissions then yes |
I have created the new app registration in Azure and set it up for App Only Access and using the following powershell script to check out the master page gallery.
I am able to see the lists, but still getting Access Denied, when trying to use Set-PnPList What are the other permissions, I need to set, so that I can use Set-PnPList |
We had C# code to provision a new site using PnP C# library with XMLTemplateProvider, that used to work from past 6+ years. Recently, we are facing the following error while trying to check out the Master Page Gallery.
Error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Appreciate, if someone could share why we are getting this error and what has changed recently in SharePoint?
The text was updated successfully, but these errors were encountered: