New Sharepoint Site does not appear in Microsoft Graph Explorer

Brian Levesque 0 Reputation points
2025-11-25T18:59:06.34+00:00

I am trying to connect a sharepoint site to a third party vendor by using Microsoft Graph. When searching for the site in Graph Explorer, the site is not found. My permissions in graph have the consent to the information. Any ideas on what I can do? Thank you.

Here is what i get.

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites",
    "@microsoft.graph.tips": "Use $select to choose only the properties your app needs, as this can lead to performance improvements. For example: GET sites?$select=displayName,error",
    "value": []
}

PII Removed

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-25T19:00:18.16+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    If your new SharePoint site is not appearing in Microsoft Graph Explorer, there are a few things you can check:

    1. Permissions: Ensure that the application has the correct permissions assigned. You mentioned having consent, but double-check that the Sites.Selected permission is granted and that it includes access to the specific site you are trying to reach.
    2. Site Collection Access: Make sure that the site you are trying to access is part of the site collections that your application has permissions for. If the application does not have access to that specific site collection, it will not appear in the results.
    3. Tenant Admin Approval: If you are using resource-specific consent, ensure that a tenant admin has granted the necessary permissions for the application to access the site. Without this approval, the application may not be able to retrieve the site information.
    4. Graph API Endpoint: When querying for sites, ensure you are using the correct Graph API endpoint. For example, you can try using a specific site ID or the path to the site if you know it.
    5. Wait for Propagation: Sometimes, newly created sites may take some time to propagate and become visible in Microsoft Graph. If the site was created very recently, you may need to wait a little while before it shows up.

    If you have checked all these points and the site still does not appear, consider reviewing the API call you are making and ensure it aligns with the expected format and parameters.


    References:


  2. Nghia-P 7,105 Reputation points Microsoft External Staff Moderator
    2025-11-26T03:40:33.04+00:00

    Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.


    Hi Brian Levesque

    Welcome to Microsoft Q&A Forum! 

    Have a good day and I hope you're doing well! 

    I completely understand how confusing it can be when calling GET https://graph.microsoft.com/v1.0/sites and getting an empty list. It often feels like the site is “missing.” In reality, this isn’t a SharePoint issue but rather how this endpoint works with permissions in Graph Explorer. 

    The /sites endpoint rarely returns data with Delegated permissions (signed-in user). According to official documentation and community discussions, GET /sites only supports Application permissions, so when you run it in Graph Explorer (delegated), it usually returns []. 

    References: See discussion on Microsoft Q&A and Sites list getting empty results in graph API.

    Note: Microsoft is providing this information as a convenience to you. These sites are not controlled by Microsoft, and Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please ensure that you fully understand the risks before using any suggestions from the above link.

    1. To find sites using delegated permissions, you need to use the “search” endpoint instead of the base list. Correct way to retrieve sites,

    Use: 

    GET https://graph.microsoft.com/v1.0/sites?search={query}  
    

    This endpoint supports both delegated and application permissions. 

    Tip: The search parameter can also be left blank (?search=) to return a list of sites you have access to. 

    References: Official guidance 

    2. Retrieve a site by its full URL (get by path): If you know the full site URL, use this syntax:

    GET https://graph.microsoft.com/v1.0/sites/{tenant}.sharepoint.com:/sites/{SiteName}
    

    You can add $select=id,displayName,webUrl to limit returned properties.

    I hope this helps! If you have any concerns, questions, or if I misunderstood anything, please feel free to let me know. 


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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  

    0 comments No comments

  3. Nghia-P 7,105 Reputation points Microsoft External Staff Moderator
    2025-11-27T01:13:31.2066667+00:00

    Hi Brian Levesque

    Thank you for your feedback. To allow a third-party application to work with Microsoft Graph and access SharePoint sites, you can follow these steps: 

    1. Determine the required permissions 

    • If the app needs access to multiple sites or the entire tenant, use Application permissions such as Sites.Read.All or Sites.ReadWrite.All. 
    • If you want to restrict access to specific sites only, use Sites.Selected (resource-specific consent). This is more secure because it limits access to designated sites. 

    2. Grant permissions to the app 

    • Go to Azure AD (Microsoft Entra) > App registrations > select your app > API permissions

    Screenshot with highlighted buttons of App registrations, API permissions, Add a permission and My APIs to enable the user to request API permissions.

    • Add the appropriate Microsoft Graph permissions (Sites.Read.All or Sites.Selected). 
    • Click Grant admin consent so the tenant admin approves the permissions. 

    References:

    Configure app permissions for a web API 

    Controlling app access on a specific SharePoint site collections is now available in Microsoft Graph

    Note: Microsoft is providing this information as a convenience to you. These sites are not controlled by Microsoft, and Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please ensure that you fully understand the risks before using any suggestions from the above link.
    3. If using Sites.Selected 

    After adding Sites.Selected, you need to grant access to the specific site by calling the API: 

    POST https://graph.microsoft.com/v1.0/sites/{site-id}/permissions 
    

    Detailed guide: Create permission - Microsoft Graph v1.0 | Microsoft Learn 

    Verify the endpoint and query 

    To retrieve a specific site, use: 

    https://graph.microsoft.com/v1.0/sites/{tenant}.sharepoint.com:/sites/{SiteName}
    

    Or search by keyword: 

    GET https://graph.microsoft.com/v1.0/sites?search={query} 
    

    I hope this helps. If you have any concern or questions, feel free to let me know.


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.