Power Platform : Power Automate – Create a Team and add Members, Owners to Team using Power Automate.

.

“You get what you focus on, so focus on what you want.”

.

Hello Everyone,

Hope you all are doing well.

Today in this article I am going to discuss about how to create a team and adding members, owners to the team using Power Automate.

Please refer my previous article “Check for duplicate Teams before creating a new Team using Power Automate”.

https://knowledge-junction.in/2022/07/22/power-platform-power-automate-create-a-team-in-teams-using-power-automate/

Also we have good number of articles on Power Platform & Microsoft Teams, please have a look.

https://knowledge-junction.in/category/technology-articles/power-platform/

https://knowledge-junction.in/category/technology-articles/m365/microsoft-teams/

So without getting late, lets get started.

Background

In one of our project requirement is create a team in Teams and add members and owners to the created team using Power Automate. For testing purpose we prepared a Power Automate Instant flow with manual trigger. The flow create a team and add the members and owners in Teams and also send mail to user.

Introduction

Power Automate:

Power Automate is a service that helps us create automated workflows between our favorite apps and services to synchronize files, get notifications, collect data, and more.

  • Automate business processes
  • Send automatic reminders for past due tasks
  • Move business data between systems on a schedule
  • Connect to more than 500 data sources or any publicly available API
  • We can even automate tasks on our local computer like computing data in Excel.

Instant Flow:

Instant Flows allow us to start a flow with a click of a button, and can be used across desktop or mobile devices. They are commonly used to automate a wide range of tasks such as requesting an approval in Teams or SharePoint or sending a reminder to the team with a push of a button from mobile.

Microsoft Teams:

Microsoft Teams is the ultimate messaging app for our organizations—a workspace for real-time collaboration and communication, meetings, file and app sharing, and even the occasional emoji! All in one place, all in the open, all accessible to everyone.

Team in Microsoft Teams:

In Microsoft Teams, teams are groups of people brought together for work, projects, or common interests. Teams are made up of two types of channels — standard (available and visible to everyone) and private (focused, private conversations with a specific audience).

Create a Flow

High Level Steps:

Create instant flow in Power Automate.

Create a team.

Add a member to team.

Add a owner to team.

Send email to user/requester.

Detailed Steps:

Microsoft 365: Power Automate
fig: Microsoft 365: Power Automate
  • In Power Automate Click on Create and select Instant Cloud flow.
Microsoft 365: Power Automate - Create Instant flow
fig: Microsoft 365: Power Automate – Create Instant flow
  • Give the Flow name and Choose Trigger and then click on Create.
Microsoft 365: Power Automate – Create flow
fig: Microsoft 365: Power Automate – Create flow
  • Our flow opened with manually trigger action. Click on New step to add next action.
Microsoft 365: Power Automate – Manually trigger flow
fig: Microsoft 365: Power Automate – Manually trigger flow
  • Choose an operation Microsoft Teams and action Create a team.
Microsoft 365: Power Automate – Create a team action
fig: Microsoft 365: Power Automate – Create a team action
  • Give the Team details: Name, Description of the team.
Microsoft 365: Power Automate – Create a team details
fig: Microsoft 365: Power Automate – Create a team details
  • Click on show advanced options and select Visibility. And click on Next step.
Microsoft 365: Power Automate – Create a team – Visibility option
fig: Microsoft 365: Power Automate – Create a team – Visibility option
  • Choose an operation Microsoft Teams and action Add a member to a team.
Microsoft 365: Power Automate – Add a member to a team action
fig: Microsoft 365: Power Automate – Add a member to a team action
  • Give the Team details: Team Name and AAD ID of User.
Microsoft 365: Power Automate – Add a member to a team action details
fig: Microsoft 365: Power Automate – Add a member to a team action details
  • Here if we are adding member to existing Team, then we can select the Team.  
  • Otherwise enter custom value.
Microsoft 365: Power Automate – choose team ID from existing teams
fig: Microsoft 365: Power Automate – choose team ID from existing teams
  • Take the Team ID from our above action Create a team from dynamic content.
Microsoft 365: Power Automate – choose team ID dynamic content
fig: Microsoft 365: Power Automate – choose team ID dynamic content
  • Here give email address of user in AAD ID.
Microsoft 365: Power Automate – AAD ID
fig: Microsoft 365: Power Automate – AAD ID
  • Again add an action Add a member to team.
  • Give the Team ID, AAD ID of owner and click on show advanced options.
Microsoft 365: Power Automate – Show advanced options
fig: Microsoft 365: Power Automate – Show advanced options
  • Here we can make the given AAD ID as owner.
  • Now select the option Should the newly added user be an owner of the team as Yes.
Microsoft 365: Power Automate – make owner
fig: Microsoft 365: Power Automate – make owner
  • Click on (…) of action and rename it.
Microsoft 365: Power Automate – action rename
fig: Microsoft 365: Power Automate – action rename
  • Choose an operation Office 365 Outlook and action Send an email (V2).
Microsoft 365: Power Automate – Send an email (V2) action
fig: Microsoft 365: Power Automate – Send an email (V2) action
  • Give the mail details: To address (take it from dynamic content / give manually), Subject and Body of the mail as shown below.
Microsoft 365: Power Automate – Send an email (V2) action details
fig: Microsoft 365: Power Automate – Send an email (V2) action details
  • Now Save the flow and click on Test.
Microsoft 365: Power Automate – Save flow and Test
fig: Microsoft 365: Power Automate – Save flow and Test
  • Select Test the Flow Manually and click on Test.
Microsoft 365: Power Automate – Test flow manually
fig: Microsoft 365: Power Automate – Test flow manually
  • Click on Continue to use the apps.
Microsoft 365: Power Automate – Use apps and continue
fig: Microsoft 365: Power Automate – Use apps and continue
  • Review/add the connections and actions and click on Run flow.
Microsoft 365: Power Automate – Run flow
fig: Microsoft 365: Power Automate – Run flow
  • Now the flow run started and click on Done.
Microsoft 365: Power Automate – flow run started
fig: Microsoft 365: Power Automate – flow run started
  • Here we can see the flow ran successfully on every action.
  • Now the flow Terminates here.
Microsoft 365: Power Automate – flow run successfully
fig: Microsoft 365: Power Automate – flow run successfully
  • We got a mail regarding Team creation.
Microsoft 365: Power Automate – mail regarding Team creation
fig: Microsoft 365: Power Automate – mail regarding Team creation
  • In our Teams we can see the Team created.
Microsoft 365: Power Automate – Team created in Teams
fig: Microsoft 365: Power Automate – Team created in Teams
  • Click on (…) of Team and select Manage team.
Microsoft 365: Power Automate – Manage Team
fig: Microsoft 365: Power Automate – Manage Team
  • Here we can see the owners and members whom we added.
  • In owners the requester/user is the owner by default.
  • We can remove the user from owners once the respective owner of team added.
Microsoft 365: Power Automate – Owners and Members of Team
fig: Microsoft 365: Power Automate – Owners and Members of Team

.

Hope this article will help us to create a team and add members, owners to the team using Power Automate.

Also get my article updates on my social media handles.

LinkedIn – https://www.linkedin.com/in/khasim-shaik-8784a1232/

Twitter – https://twitter.com/KhasimShaik2009

Facebook – https://www.facebook.com/profile.php?id=100078255554660

Thank you for your support, will catch up with new article soon.

Keep learning and keep smiling.

Have a great day.

Thanks.

Khasim Shaik

SharePoint & Power Platform Developer at OS InfoTech

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Microsoft 365

Subscribe now to keep reading and get access to the full archive.

Continue reading