Custom Flow Connector to create a Microsoft Team
The connector does not need any code. It just leverages the Microsoft Graph API with the help of an Open API 2.0 specification (swagger file).
Blog post: http://blog.leitwolf.io/create-a-microsoft-team-with-flow-custom-connector/
Installation
1. Register App in Azure Portal
- Regiser an new Azure AD App in you Azure AD
- Add the Microsoft Graph permission for delegated "Read and write all groups" (Group.ReadWrite.All) and "Access user's data anytime" (offline_access).
- Copy the application id / client id
- Generate and copy a key / app secret
2. Install Custom Connector
- Sign in to PowerApps Portal https://web.powerapps.com
- Navigate to custom connectors -> create custom connector -> import an OpenAPI file
- Enter a title for the connector e.g. "Microsoft Teams - Create Team Connector" and choose the teams.swagger.json file from this Git repo -> next
- Verfiy the following settings: Scheme: (x) HTTPS; Host: "graph.microsoft.com"; Base URL "/" and continue
- As authentication type choose "OAuth 2.0"
- Select "Generic Oauth 2" as Identity provider