Microsoft Teams Cloning

Nikolaus Haminger 11 Reputation points
2023-05-10T11:46:30.3466667+00:00

Hello fellow Graph developers!

So I've developed a C#/.NET functionality that deep clones a TeamsTeam. The customer has got a specified template team (which is not really a template team, but a normal one) where they can define a file structure, a Planner Plan with Tasks and a OneNote Tab. This team gets cloned automatically.

The cloning process is still quite unstable even though I've revised it several times. I'm using the Graph cloning endpoint which should copy the team with its tabs, members etc., but I need to copy tabs and members manually after the clone call because

  • the tabs cloning only copies tabs with empty or wrong references
  • the member cloning has problems with team owner copying, if there are more than one.

I also need to manually copy the Planner Plan and the OneNote Notebook.

The file structure copying is another problem. It doesn't happen with the clone endpoint and I also need to copy the files and folders manually one after another with many redundant checks mostly because of timing issues, but sometimes it fails nevertheless.

Is there any possibility available to clone teams more reliably? Especially the file structure cloning is a real pain and I would be glad if you could point me to a more reliable alternative than the Graph Drive endpoint. Are there any plans to enhance the cloning endpoint so that it really copies the whole team with files, tabs and apps?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,124 questions
0 comments No comments
{count} votes