Asking for all sites of groups returns unrealated sites

Rémi Picot 0 Reputation points
2024-03-01T16:36:09.4966667+00:00

Expected behavior.

A call to GET https://graph.microsoft.com/v1.0/groups/{group-id}/sites/ should get all sites related to a group, for example those automatically created in msTeams when a private channel is used.

Actual behavior.

Seems to return all sites instead

User's image

Steps to reproduce the behavior.

  1. Make a team A on MsTeams, post messages with attachments to force create the associated sharepoint site to the group.
  2. Then create a private channel on teams A to force the creation of a separate sharepoint site associate to the group.
  3. make a new team B and post messages with attachments to force create the associated sharepoint site to the group.
  4. call GET https://graph.microsoft.com/v1.0/groups/{group-id}/sites/ with group-ip corresponding to the team A on msTeams.
  5. The result is like the screenshot on actual behavior and the site associated to team B appears among others.
  6. We would have expected two sites, the root site of A, and the site corresponding to the private channel on team A.

(we got redirected here from our ticket here https://github.com/microsoftgraph/msgraph-sdk-java/issues/1868)

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,918 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,779 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,617 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.