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>