I want to register an add in in SharePoint online where I can run search queries. I've tried various permission xml's and cannot seem to get it to work.
I've been going here assign the xml... https://{sharepointsite}/_layouts/15/appinv.aspx
My latest try was this...
<AppPermissionRequests AllowAppOnlyPolicy="false">
<AppPermissionRequest Scope="http://sharepoint/search" Right="QueryAsUserIgnoreAppPrincipal" />
<AppPermissionRequest Scope="https://sharepoint/content/tenant" Right="FullControl" />
</AppPermissionRequests>
which results in "Application does not have administrative permissions in tenant"
I've also tried this which doesn't work either...
<AppPermissionRequests AllowAppOnlyPolicy="false">
<AppPermissionRequest Scope="http://sharepoint/search" Right="QueryAsUserIgnoreAppPrincipal" />
</AppPermissionRequests>
and this...
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="https://sharepoint/content/tenant" Right="FullControl" />
</AppPermissionRequests>
So, my question is - what is the proper permission xml so search queries can be performed.