Exception - Access Denied when trying to apply ApplyProvisioningTemplate using OfficeDevPnP


Sriram
Technology Specialist
Published On :   28 May 2018
Visit Count
Today :  3    Total :   462




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>
 
Categories