Hi everyone,
When I simply execute the Graph Query after adding my Sharepoint Site name, it returns empty array instead of with value. https://graph.microsoft.com/v1.0/sites?search=[MY _SHAREPOINT_SITE_NAME]
I consent all Sites.Read.All and Sites.ReadWrite.All permissions. I am owner of the site and I tried to change the private to public of the state of the Sharepoint site but nothing changed still returning empty array
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites",
"value": []
}
What am I really missing? I will be glad if you help me on that. Thanks in advance.
Hi @Geeks_D ,
It's works! But it's a bit strange because I used space between the words then it worked.
I really could not think that it works with spaces 🤔
Thanks for your support! 🤙
Please accept this as solution if that works for others to Improve Knowledge Management
Hi
Can you try this - https://graph.microsoft.com/v1.0/sites?search=
This will display all SharePoint Sites in your tenant
Then look for this in the list
This will show the actually name of that site
Then you can rewrite your query with that actual name like this
https://graph.microsoft.com/v1.0/sites?search=Development
It will display the Sharepoint site details
Sure, I tried it on Microsoft Graph Explore
Best option to try your API calls on the Microsoft Graph Explore to be sure all the syntax and id is correct