Exception - Access Denied when trying to apply ApplyProvisioningTemplate using OfficeDevPnP

Technology Specialist
Published On :   28 May 2018
Visit Count
Today :  1    Total :   588

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:

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