Exception – Access Denied when trying to apply ApplyProvisioningTemplate using OfficeDevPnP

Sriram
 
Technology Specialist
May 28, 2018
 
Rate this article
[Total: 2    Average: 5/5]
 
Views
1937

I was writing a Remote Event Receiver to create a web and apply ApplyProvisioningTemplate using OfficeDevPnP.

Subsite got created but when applying provisioning template I got access denied error.

I got access denied error though I have provided Full Control permission to SiteCollection in AppManifest.XML.

Solution for this issue is, we need to give the app permissions in the taxonomy. I did this in the appmanifest.xml file:

 <AppPermissionRequests>
   <AppPermissionRequest Scope="http://sharepoint/taxonomy" Right="Write" />
 </AppPermissionRequests>
 

Author Info

Sriram
 
Technology Specialist
 
Rate this article
[Total: 2    Average: 5/5]
 
Sriram T has been working in IT industry for over 6 years He holds Bachelor's degree in Computer Science Engineering. Sriram write articles and blogs related to SharePoint 2013, SharePoint ...read more
 

Leave a comment