
Hi @Richie Hao ,
Thanks for reaching out to Microsoft!
As per the documentation here: "Microsoft 365 and announcing that we will no longer be making improvements to the OneDrive and SharePoint search APIs in favor of Microsoft Search APIs in Microsoft Graph."
If your application uses the drive search query against a non-OneDrive for Business drive, then use the following query:
POST https://graph.microsoft.com/v1.0/search/query
Content-type: application/json
{"requests": [
{
"entityTypes": [
"driveItem"
],
"query": {
"queryString": "contoso (path:
[https://contoso-my.sharepoint.com/personal/johndoe_contoso_com
])"
}
}
]
}
For personal OneDrive, currently POST https://graph.microsoft.com/v1.0/search/query not retrieving the successful response, consider submitting a support ticket New support request - Microsoft Entra admin center or https://admin.microsoft.com/#/support/requests to Microsoft. They can provide more detailed insights and help resolve any underlying issues.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.