Forum Discussion
Full control app permission on one site works on Lists, but partially fails on another (same tenant)
- Jan 10, 2020
IshtarOnline - Thanks for taking a stab at it. Sorry for the delay in responding. Actually, it something insanely dumb. On our site - in the permissions XML, we created is as:
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequestScope="https://SAMPLESITE.sharepoint.com/sites/SAMPLE"
Right="FullControl" />
</AppPermissionRequests>We misinterpreted the documentation, replacing the scope with OUR site, which was wrong. So it really was as it was written in the documentation.
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequestScope="http://sharepoint/content/sitecollection"
Right="FullControl" />
</AppPermissionRequests>There are times that it is fine to just copy and paste the documentation. Hope this post helps others. Thanks!
Noel_Suarez It seems to me your call is successfull but does not retrieve any items. This can be either because there simply are no items, or maybe because permissions on the listitems are broken and the app has no inherited permissions on the libraries items.
Maybe try using /items?select=*
Standard everything should be returned, but maybe you have a specific filter already there?
IshtarOnline - Thanks for taking a stab at it. Sorry for the delay in responding. Actually, it something insanely dumb. On our site - in the permissions XML, we created is as:
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest
Scope="https://SAMPLESITE.sharepoint.com/sites/SAMPLE"
Right="FullControl" />
</AppPermissionRequests>
We misinterpreted the documentation, replacing the scope with OUR site, which was wrong. So it really was as it was written in the documentation.
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest
Scope="http://sharepoint/content/sitecollection"
Right="FullControl" />
</AppPermissionRequests>
There are times that it is fine to just copy and paste the documentation. Hope this post helps others. Thanks!