Graph API search with empty array result

MI-ETQ-DEV 10 Reputation points
2024-02-05T14:47:41.0266667+00:00

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 Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sourabh Gupta 805 Reputation points Microsoft External Staff
    2024-02-10T11:22:09.63+00:00

    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.