I need to do searches within SharePoint Online document libraries either using the new Search API (https://learn.microsoft.com/en-us/graph/search-concept-overview) or using the _api/search
endpoint.
I've reached a dead end using the _api/search
endpoint as it seem it doesn't accept application token credentials even with certificate authentication. It ends up giving a {"error_description":"Unsupported security token."}
So, maybe the new Search API can be used to search elements within SharePoint Online document libraries from an external service.
However, the permission type Application
is not supported as its said in the docs:
https://learn.microsoft.com/en-us/graph/api/search-query?view=graph-rest-beta&tabs=http
Any hints on this?
Thank you very much