Share via

Graph API search with empty array result

MI-ETQ-DEV 10 Reputation points
Feb 5, 2024, 2:47 PM

The sites search was working yesterday but suddenly it stopped working and started returning empty array, while if we request all sites without search it will return everything as expected. Screenshot 2024-02-05 at 9.13.35 AM

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,452 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sourabh Gupta 800 Reputation points Microsoft External Staff
    Feb 10, 2024, 11:22 AM

    Hi MI-ETQ-DEV,

    Thanks for reaching out.

    This API is working fine for me. refer to the screenshot attached below.

    User's image

    Could you please try to check the permissions in your token by parsing it. It should have permission "Sites.Read.All". This endpoint is not applicable for Delegated (personal Microsoft account).

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.