Search across a SharePoint tenant sites: The query parameter '$search' is not supported

Tieming Sun 1 Reputation point Microsoft Employee
2021-11-17T04:04:37.783+00:00

Hi, I'm from SharePoint migration team.

We are using graph API to search across a tenant's site. Starting from yesterday, graph API continuously gives 400 bad requests, saying the query parameter '$search' is not supported. However, according to the tutorial, it should be supported: https://learn.microsoft.com/en-us/graph/api/site-search?view=graph-rest-1.0&tabs=http

Wondering if it's a bug?
149976-image.png

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,677 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,706 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 31,606 Reputation points Microsoft Vendor
    2021-11-17T08:10:13.73+00:00

    Hi @Tieming Sun ,
    Per my test, the API runs well and return 200. Please check the Permission first.
    150028-image.png
    The personal Microsoft account is not supported.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.