Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue finding results in Microsoft Graph /me/drive/search endpoint

I'm having a hard time figuring out how the /me/drive/search endpoint matches documents.

When I try /v1.0/me/drive/search(q='myQuery') I receive documents with the name myQuery back. This makes sense. What doesn't make sense is that if try /v1.0/me/drive/search(q='.') I receive a giant list of results from across my organization. It appears that these documents are accessible to me, but when I try to search for one of them by name they don't come up.

Example

  • /v1.0/me/drive/search(q='.') returns many documents, one of which is named "My Test Document"

  • /v1.0/me/drive/search(q='My Test Document') returns no results.

One would expect that the 2nd query returns the same document as the first query.

like image 469
Jack Slingerland Avatar asked Oct 25 '17 18:10

Jack Slingerland


People also ask

What is returned when submitting a request to the Microsoft Graph endpoint me drive root?

In this example, you've requested Microsoft Graph to automatically include the children collection from the drive/root endpoint. The response will include all the default properties for the collection of files and folders within the root folder of the user's OneDrive.

How do I enable Microsoft Graph data Connect?

Enable Data Connect in your Microsoft 365 tenantSelect the Microsoft Graph Data Connect service. Select the checkbox that says Turn Microsoft Graph Data Connect on or off for your entire organization... to enable the Data Connect service.


1 Answers

We've made a change that we believe should help for this specific query. Hopefully you'll get consistent results now!

like image 87
Brad Avatar answered Oct 13 '22 05:10

Brad