Graph API - Clone Team - Parts to clone "apps"

Oskar Fjeld 1 Reputation point
2022-03-30T09:28:13.513+00:00

I'm trying out the POST /teams/{id}/clone endpoint with a user access token and it seems to work fine for the most part.
I set the partsToClone property to "apps, tabs, settings, channels, members" and members/channels/settings get copied.
My issue is that apps don't get copied to the new team. Is this a known bug or am I missing something?

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,422 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sayali-MSFT 3,141 Reputation points Microsoft Vendor
    2022-04-01T14:56:08.707+00:00

    You cannot copy the whole structure of Team. You can copy the following parts in Team using POST /teams/{id}/clone Graph API

    apps - Copies Microsoft Teams apps that are installed in the team.

    channels – Copies the channel structure (but not the messages in the channel).

    members – Copies the members and owners of the group.

    settings – Copies all settings within the team, along with key group settings.

    tabs – Copies the tabs within channels.

    When tabs are cloned, they are put into an unconfigured state -- they are displayed on the tab bar in Microsoft Teams, and the first time you open them, you'll go through the configuration screen. (If the person opening the tab does not have permission to configure apps, they will see a message explaining that the tab hasn't been configured.)

    When we tried with same app install in clone team it gives message App already exist. Could you please check it once or share screenshots or repro steps so we can try it from our end?

    Ref. Doc:-https://learn.microsoft.com/en-us/graph/api/team-clone?view=graph-rest-1.0&tabs=http

    0 comments No comments

  2. cubb77 1 Reputation point
    2023-01-25T15:19:49.3666667+00:00

    Hello Sayali an guys,

    I have got similar problems specially with copying Private channels. Maybe I am wrong but I could not find any word about "copying private channels is not supported" in the documentation... And I suppose, after huge troubleshoting, that it is not supported... Am I right Sayali? Also customizing the "mailNickname": attribute is ignored (by the way this problem is unfixed >3 years) and the mailNickname is created from display name instead... My question is what is this cloning environment for, when it does not work as it should? And when I try to use team template disaster, it also corrupt private channel - it change channel to standard and does not create channel site as bonus without possibility to change channel privacy... Somebody should fix this paid mess at last please... Thanks

    0 comments No comments

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.