microsoft-graph-explorer-v4 icon indicating copy to clipboard operation
microsoft-graph-explorer-v4 copied to clipboard

onedrive search not returning results

Open anthony1293 opened this issue 3 years ago • 5 comments

onedrive search only returns blank response.

Steps to reproduce the behavior:

  1. I have created graph.xlsx in the root folder of my one drive
  2. grant permissions for files.readwrite.all and sites.readwrite.all
  3. get /v1.0/me/drive/root/search(q='graph.xlsx')?select=name,id,webUrl
  4. Response = 200 OK
    { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(driveItem)", "value": [] }
  5. value is blank. I can replace the query with any search term and no file details are ever returned.

I would expect to see a response that includes the driveItem details.

If I do /v1.0/me/drive/root/children (get all items in my drive), I receive back all driveItems with details, including the graph.xlsx file I am searching for.

I'm testing in the graph explorer as well as python graph client and get same behavior for both.

anthony1293 avatar Aug 23 '22 02:08 anthony1293

hey @anthony1293, I'm unable to reproduce this. I have tried something similar and I get a response image

Could you confirm if you are still getting a blank response?

ElinorW avatar Aug 23 '22 13:08 ElinorW

Yep. image

anthony1293 avatar Aug 23 '22 14:08 anthony1293

but if I do a driveitems search I get a response: image

anthony1293 avatar Aug 23 '22 14:08 anthony1293

@ElinorW It's worth noting that the user I have signed into graph explorer with has no admin privileges, so I can only give delegated permissions, no application permissions. Not sure if that would have any effect.

anthony1293 avatar Aug 23 '22 14:08 anthony1293

@ElinorW It's worth noting that the user I have signed into graph explorer with has no admin privileges, so I can only give delegated permissions, no application permissions. Not sure if that would have any effect.

Yeah, I tried this with a user with no admin privileges and it still works. I'll investigate some more

ElinorW avatar Aug 25 '22 08:08 ElinorW

Hey @anthony1293, are you still having trouble this? I'm still unable to reproduce

ElinorW avatar Oct 03 '22 15:10 ElinorW

Hi @Elinor, yes it's still a problem but it seems to be related to only a specific Tenant. Using a login for another tenant, and it works ok.

anthony1293 avatar Oct 11 '22 13:10 anthony1293

Hey @anthony1293 Oh okay. Could be a configuration issue... I'll close this since it doesn't seem to be a problem specific to Graph Explorer.

ElinorW avatar Oct 12 '22 08:10 ElinorW