Teams: Private Channel provisioning of SharePoint Site Collection: only triggered in User Interface?

Jan van der Heide 1 Reputation point
2020-10-22T20:09:52.42+00:00

For migration from on-prem SharePoint to Teams I need to pre-provision Teams with private channels. After that I am using a migration tool to copy the content from source to destination (on library level).

Now kind of stuck: we need the Private Channel functionality, we are are to provision them.

The SharePoint site collection that hosts the files tab of the private channel only gets provisioned after manually clicking (and waiting) in the user interface. Not able to find a way to trigger this using PowerShell / Graph.

Anybody work arround for this?

Up until now the (not working yet) solution direction is to use PowerShell script to open de page which should open clicking on Files and try to refresh until new site collection has been created.

Same also yields for normal channels: the SharePoint folders that host a channel are created when user clicks on 'Files' of the corresponding Channel. I have however tested that I can scripted precreate the folder.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,289 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,101 Reputation points Microsoft Vendor
    2020-10-23T06:02:46.69+00:00

    @Jan van der Heide ,

    Do you mean that you are going to migrate SharePoint On-premises to Online?

    As you said, it needs to manually add file tab in Private channel. If you want to realize it by scripts, it is more related to development, which we don’t support. You can refer to this article to learn how to add tab to the specific channel within a team.


    If the response is helpful, please click "Accept Answer" and upvote it.

    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.


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.