Forum Discussion

Blair24's avatar
Blair24
Copper Contributor
Dec 02, 2018

Azure Function App - Apply PnP Template 403 Error

Hey,

 

Running a few function apps to create a SharePoint site collection then apply a PnP template to the site. The first app creating the site collection runs fine, but the second app trying to apply the template gets a 403 error. The function app is using an Azure AD Registered app to sign in, which has the following application permissions:

 

Read user profiles Read and write user profiles Read and write managed metadata Read managed metadata Read and write items and lists in all site collections Have full control of all site collections Read items in all site collections Read and write items in all site collections (All application permissions)

 

So I'm not sure why it can create a site, but not apply a template?

No RepliesBe the first to reply

Resources