Use Microsoft Lists and Power Automate to provision Microsoft Teams

In this blog post I’ll show how easy it is to provision Microsoft Teams teams using Microsoft Lists and Power Automate. Creating a Teams team is super simple from the Teams client, this post is not intended to replace that functionality, rather this has been developed with a PMO (project management office) team managing multiple projects from a centralized List in mind.

Our demo list, called Projects, has the following schema:

Column nameColumn type
TitleTitle used to store the project name.
DescriptionSingle line of text used to store the project description.
VisibilityChoice with the following options: “Private” and “Public”. Indicates if a team should visible to non-team members.
OwnersPerson or Group with Allow multiple selections enabled.
MembersPerson or Group with Allow multiple selections enabled.
LinkURL used to store the web link to the newly created Teams team.
Projects list

Create a new Flow from the Projects list > Automate > Power Automate > See your Flows > Create new > Automated from blank. Provide a Flow name, i.e. “Teams provisioning”, select the SharePoint “When an item is created” trigger and click “Create”.

When an item is created trigger

Set the “Site Address” and “List Name” to your target site and list.

When an item is created.

Insert a new Microsoft Teams “Create a team” step. Set:

  • “Team Name” to “Title”
  • “Description” to “Description”
  • “Visibility” to “Visibility Value”
Create a team

Insert a new Microsoft Teams “Get a team” step. Set “Team” to “New Team ID” from the Create a team action.

Get a team

Insert a new Microsoft Teams “Add a member to a team” step – this is for Owners. Set:

  • “Team” to “Team ID” from the Get a team step
  • “A AAD ID for the user to add to a team” to “Owners Email”
  • “Should the newly added user be an owner of the” to “Yes”
Add a member to a team step for owners

Power Automate will place the “Add a member to a team” step into a “Apply to each” loop because the “Owners” column can store multiple selections.

Insert another new Microsoft Teams “Add a member to a team” step – this is for Members. Set:

  • “Team” to “Team ID” from the Get a team step
  • “A AAD ID for the user to add to a team” to “Members Email”
  • “Should the newly added user be an owner of the” to “No”
Add a member to a team for members

Insert a new SharePoint “Update item” step. Set:

  • “Site Address” and “List Name” to your target site and list
  • “Id” to “ID” from the “When an item is created” step
  • “Title” to “Title” from the “When an item is created” step
  • “Visibility Value” to “Visibility Value” from the “When an item is created” step
  • “Link” to “Web Url of team” from the “Get a team” step
Update item

My completed Flow looks like the image below.

Completed Flow.

Test by creating a new entry in the Projects list. Give it a minute and check Teams.

Teams with my new project team

The Project lists, shown here in Gallery view, includes a handy link to the team that can be used for onboarding documentation.

It’s been my experience that having a single centralized project listing is always valuable. Extending the listing to include Teams provisioning for project teams adds consistency for project owners, members and simplifies “admin” work for the PMO.

Thanks for reading.

NY

7 thoughts on “Use Microsoft Lists and Power Automate to provision Microsoft Teams

  1. hello, I tried this, I thought I can use my email in the AAD ID field for the Add a Member to a Team action, but it wasn’t reconized. how did it work for you?

    Like

    1. Hi Oliver,

      I used the Owners Email value from the Owner column in Projects List. Let me know how you make out.

      Thanks for reading!

      NY

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s