pnp / sp-dev-site-scripts

Repository for sample SharePoint site designs and site scripts
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview
MIT License
162 stars 68 forks source link

Installing Site scripts through Provider hosted apps #11

Open ymihir opened 6 years ago

ymihir commented 6 years ago

I am trying to install site scripts from provider hosted app. I am able to get the installed scripts by /_api/Microsoft.Sharepoint.Utilities.WebTemplateExtensions.SiteScriptUtility.GetSiteScripts endpoint. But when I am trying to create scripts it is giving me 401 unauthorized error. i am doing app only calls. Does App should have access at tenant level to install the scripts? As of now my PHA is having full control on site collection.