question

JrmeBesson-6508 avatar image
1 Vote"
JrmeBesson-6508 asked saldana-msft edited

Some users got empty result using MS Graph Search api

Dear friends,

I have got a very strange behavior with the Microsoft Graph Search api.
With some users, when I use Graph Explorer and I test the search "search sites" exemple, this return nothing and for other users it works perfectly.

Of course, I have already checked the authorizations on the SharePoint sites.
In fact, it doesn't work even for the global administrator of my tenant.

I am totally confused, so if someone has an idea, it could be very helpful.
Thanks by advance.

microsoft-graph-sites-listsmicrosoft-graph-search
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Adding right tags/teams to assist.

0 Votes 0 ·

Share the Graph API call that you tried

0 Votes 0 ·

Hello,

There is the post api :
https://graph.microsoft.com/v1.0/search/query

with the request body :
{
"requests": [
{
"entityTypes": [
"site"
],
"query": {
"queryString": "*"
}
}
]
}

And the response is :
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.searchResponse)",
"value": [
{
"searchTerms": [],
"hitsContainers": [
{
"total": 0,
"moreResultsAvailable": false
}
]
}



I am global admin of the tenant with full access on all the content.
Regards,
Jérôme

0 Votes 0 ·

I had the same problem. I solved it by going to the affected User in Azure AD and clicking on Revoke session. I had the affected users restart their machine at the end of the day and it worked the next morning

0 Votes 0 ·

0 Answers