Newly Added sharepoint site does not show on graph api

Daren Almonina 40 Reputation points
2023-11-13T03:56:06.14+00:00

Hello, we encounter this problem every time we create a new SharePoint site, and it does not show up in Microsoft Graph Explorer. However, after an hour, it becomes available.

User's image

User's image

User's image

Is there a way for us to get a Realtime data of the newly added SharePoint site coming from the Graph API?

Regards

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph

Answer accepted by question author
RaytheonXie_MSFT 40,501 Reputation points Microsoft External Staff
2023-11-14T02:16:23.51+00:00

Hi @Daren Almonina ,

Per my test, I can reproduce your issue. I found that the data obtained by Graph api search should be cached data, and the cache will not be refreshed frequently.

I tried using Search to find the newly created site by name, and it took about one hour. If I created a file and found it by file name, it also took 5 minutes. However, if you provide the site ID, listID, and item ID to obtain it, you can obtain the information very accurately.

Please refer to the following api

https://graph.microsoft.com/v1.0/sites/{siteid}

User's image


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.

Was this answer helpful?


1 additional answer

Sort by: Newest
  1. Daren Almonina 40 Reputation points
    2023-11-14T02:30:43.3533333+00:00

    Hi @RaytheonXie_MSFT ,

    Thank you for the feedback, however upon creating the SP site, how do we know the siteID?, the way we retrieve the siteID is thru MS graph API, and we cannot retrieve it after we create the site.

    Regards

    Was this answer helpful?


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.