1

We have a SharePoint 2013 Provider-Hosted App using C# CSOM that has been deployed to a Developer site under the root site. One of the requirements of our app is that it should be able to create lists in the site where the app is deployed and trusted as well as to subsites below this site, once the user has access. However, when trying to create a list on a subsite of the developer site we get a 403 Forbidden error.

Is there any way to create lists on subsites from our app or am I only able to create lists on the site my app was deployed to?

  • What permission set do you have in your app's manifest? – James Love Sep 26 '14 at 18:43
  • Web (FullControl), List (FullControl) and Site Collection (FullControl). Also, the "Allow the app to make app-only calls to SharePoint" box is checked. – Ryan Shripat Sep 26 '14 at 19:01
0

You need to use an AppOnlyAccessToken (TokenHelper.GetAppOnlyAccessToken()) to do this, as well as allow the app to make App-Only calls in SharePoint. (via https://stackoverflow.com/questions/26065857/create-list-using-c-sharp-csom-in-a-subsite-on-office-sharepoint-o365)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.