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

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

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.
563 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
5,979 questions
Microsoft Graph Site Lists API
Microsoft Graph Site Lists API
A Microsoft API that "supports access to SharePoint sites, lists, and drives; read-only support for site resources; read-write support for lists, listItems, and driveItems; and address resources by SharePoint ID, URL, or relative path.
260 questions
Microsoft Graph Search API
Microsoft Graph Search API
A Microsoft API that searches for information in email messages, returns messages ranked by relevance, and renders a dedicated search experience.
158 questions
{count} votes

1 answer

Sort by: Most helpful
  1. answered 2021-11-17T08:10:13.73+00:00
    RaytheonXie_MSFT 14,226 Reputation points Microsoft Employee

    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.