Microsoft Teams Graph API: private Sharepoint site creation

Ilya Laschenko 31 Reputation points
2021-03-11T10:21:10.617+00:00

Hi all,
I'm developing integration tests with Microsoft Teams and Sharepoint sites and found an odd issue with the creation of private teams channel.

The flow is following:

  • Create Team(it automatically creates 'General' public channel and corresponding Sharepoint site)
  • Add document to the 'General' channel
  • Create a private channel for this team
  • Add document to the private channel - on this step I found that there is no FileFolder via GraphApi(client.Teams[teamId].Channels[channelId].FilesFolder.GetAsync())

The behavior, that I'm observing, is when you create a team and a private channel in Graph then the private channels drive and SharePoint site is never generated until you actually manually visit the private channel

The question is following:
Is there any way to trigger the creation of a private SharePoint site after the creation of a private channel via Graph API?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,842 questions
{count} votes