Search does not work for particular account

Embee 0 Reputation points
2024-06-28T07:20:13.9366667+00:00

Hi!

I'm writing to you with very specific problem, search feature does not work for the account testerembee@gmail.com. It does not work both in OneDrive and using Microsoft Graph API.
On OneDrive app (both web and android), I get no results.

Using API, for the following request:

GET https://graph.microsoft.com/v1.0/drives/<driveId>/items/root/search(q='book') // Or any other query

I get the following response:

{
  "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.driveItem)",
  "value": []
}

Is it possible for account to be banned from searching?

PS. I've checked on my second account, and searching works for both API and apps.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,206 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
934 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 39,256 Reputation points
    2024-06-28T08:36:28.8866667+00:00

    Hi @Embee

    As far as I know, there is no policy to prohibit search for users. After many tests, I found that the /search endpoint only works for work accounts, and it will return an empty array for personal accounts, even if the files I searched for do exist in the current personal OneDrive.

    I recommend that you submit a user voice to report this issue.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.