/TeamsProvisioning

Helper code for provisioning Microsoft Teams from a template.

Primary LanguageC#MIT LicenseMIT

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