If your new SharePoint site is not appearing in Microsoft Graph Explorer, there are a few things you can check:
- Permissions: Ensure that the application has the correct permissions assigned. You mentioned having consent, but double-check that the
Sites.Selectedpermission is granted and that it includes access to the specific site you are trying to reach. - 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.
- 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.
- 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.
- 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: