Question

I am developing a test REST app currently, the app is sharepoint hosted and is being developed and deployed to the SP site without Sharepoint installed on my Machine.

The app is meant to take in a query param that is a title of a list or a guid and search the SP site for the list and return the contents of the list. Is set up the query call and generated the URLs correctly but when I requested Search permission within the App Manifest to be set to "QueryAsUserIgnoreAppPrincipal", upon deployment to the site I receive a prompt to trust the app with the error Sorry, only tennant administrators can add or give access to this app.

The "Trust it" option cannot be selected, can anyone shed some light on this issue as to why I am getting this error?

-Thanks

Was it helpful?

Solution

For some of the permissions like Search , User Profile Service, Social Capabilities etc, you need to be tenant admin and not just site collection admin.

For more details on this topic please check the following msdn articles

App Permissions in SP 2013

Search apps in SP 2013

So basically, you need to login from tenant admin account and then "Trust" the app.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top