Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to create a private channel's SharePoint site?

We currently have an issue when creating private channels on a team which was created using the "/teams" Graph API endpoint.

When adding a private channel from the Graph API, the SharePoint site associated to the channel is not provisioned. User needs to visit the "Files" tab in the MSTeams client for the site to be created.

We noticed that this is not the case when initially creating the Team from the MSTeam client or from the "/groups/{id}/team" endpoint (which is marked as being soon deprecated). Using either of those two methods to create the team, SharePoint sites are automatically created when adding a private channel.

We were wondering if this was the expected behaviour or a bug. It is an issue for us as we have no way to automate the creation of the private channel's site and thus we cannot copy files into the site as long as a user did not visit the "Files" tab.

like image 307
odrouin Avatar asked Jan 24 '26 15:01

odrouin


2 Answers

@odrouin - This is not expected behavior. We have bug created for this issue. Thanks for reaching out.

like image 51
Abhijit Avatar answered Jan 26 '26 18:01

Abhijit


I think I've found a workaround for this issue. It seems like if you first make a call to the filesFolder endpoint on the primaryChannel of the team (the General channel), then the site will be provisioned for a private channel created afterward.

like image 29
odrouin Avatar answered Jan 26 '26 19:01

odrouin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!