https://graph.microsoft.com/v1.0/sites/delta return bad ids

Patrick Lachance 0 Reputation points
2024-06-14T14:26:25.6966667+00:00

Recently, we noticed a regression using the new endpoint: https://graph.microsoft.com/v1.0/sites/delta.

According to the documentation, each site ID should have this syntax: {hostname},{spsite-id},{spweb-id}.

This was operating correctly. However, for the past few days (possibly a week), the Graph API now returns an ID with only the {spweb-id}. This is a breaking change to the API.

The workaround is to fetch SharePoint IDs with all default fields and craft the ID ourselves using the following endpoint:

https://graph.microsoft.com/v1.0/sites/delta?$select=createdDateTime,name,webUrl,displayName,isPersonalSite,id,sharepointIds,siteCollection

  • hostname is located under site.siteCollection.hostName
  • spsite-id is located under site.sharepointIds.siteId
  • spweb-id is located under site.sharepointIds.webId

We are implementing the workaround.

Hope this will get resolved shortly.

Regards

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,131 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,076 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 32,801 Reputation points Microsoft Vendor
    2024-06-17T02:37:06.0233333+00:00

    Hi @Patrick Lachance,

    Thanks for letting us know your user experience. According to your case description, I do understand how frustrated you are now. And I feel regretful to inform you that it turns out to be a by-design one.

    It is highly recommended that you can vote this ticket. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.


    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.