Skip to content
Helper code for provisioning Microsoft Teams from a template.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Entities
Properties
Templates
.gitignore
App.config
COB-Teams-Provisioning.csproj
COB-Teams-Provisioning.csproj.user
COB-Teams-Provisioning.sln
LICENSE
Program.cs
README.md
TeamDetails.cs
packages.config

README.md

COB resources for provisioning Microsoft Teams from a template

Please see accompanying blog post - https://cob-sp.com/TeamsProvisioning

This project includes:

  • A static JSON file which provides the non-changing elements of a Teams template
  • Some helper code to manipulate the JSON to add bits that change for each instance of a Team - the name, description, and owner for example. This is in the form of a C# console app
  • Helper code to make the appropriate call to the Microsoft Graph to provision the Team from the JSON

The setup

You'll need an AAD app registration and to swap out placeholders in the code for your client ID/secret and tenant details. Of course, in real life you'll need to deal with these appropriately for production code.

The result

The code will create as many Teams as you like, all containining the channels, tabs and apps defined in the template:

Team created from template - 1

Team created from template - 2

You can’t perform that action at this time.