web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Graph API return empty...
Power Apps
Answered

Graph API return empty array when I search for a Sharepoint site by keyword query

(0) ShareShare
ReportReport
Posted on by 113

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.

Categories:
I have the same question (0)
  • Geeks_D Profile Picture
    1,169 on at

    Best option to try your API calls on the Microsoft Graph Explore to be sure all the syntax and id is correct 

  • ltfDre Profile Picture
    113 on at

    Sure, I tried it on Microsoft Graph Explore

     

    ltfDre_1-1689081983002.png

     

  • Verified answer
    Geeks_D Profile Picture
    1,169 on at

    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 

    Geeks_D_0-1689083212721.png

    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 

    Geeks_D_1-1689083298936.png

     

  • Geeks_D Profile Picture
    1,169 on at

    Please accept this as solution if that works for others to Improve Knowledge Management 

  • ltfDre Profile Picture
    113 on at

    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! 🤙

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard