You can find your Microsoft Teams application credentials by visiting the Microsoft Developer Portal for Teams.You’ll need the following information to set up your Microsoft Teams app with Paragon Connect:
Log in to the Developer Portal for Teams using the same Microsoft account that you use to log in to the Microsoft Azure Portal.
Navigate to Tools in the sidebar.
Select Bot Management.
Click New Bot and provide a name for your bot. This is not the name that appears to your users; we recommend appending “(Bot)” to the name for clarity.
Next, you will need to associate this new bot with your Teams application.
In the Developer Portal for Teams, navigate to Apps in the sidebar.
If you do not have a Teams app yet, click New app and provide a name. This name will be the one displayed in the Microsoft Teams store and to your users.
In Basic information, you will need to minimally provide a short description and URLs for your application’s website, Privacy Policy, and Terms of Use.
Click Save below.
In your Teams app settings, navigate to App features (under the Configure section).
Select Bot.
Select the bot user you created above.
Check any applicable capabilities for your bot user.
Click Save below.
Optionally, upload an icon for your app in Branding.
If your application is not yet published to the Microsoft Teams store, you can test your app by uploading your app’s package directly into your Teams account.
Navigate to All Services > App Registrations and select the app registration representing your bot, not your Microsoft Teams app. You can check to make sure that the ID matches the one you selected for your associated bot: In Developer Portal for Teams > [Your App] > App Features:
Select Authentication from the sidebar.
Under Platform configurations, press the “Add a platform” button.
Select the Web platform.
Paste the Redirect URL from Step 1 under Redirect URIs.
Since Microsoft Teams does not automatically provide you with a Bot Client Secret for your application, we’ll need to make one. To get your Bot Client Secret:
Navigate to All Services > App Registrations and select the app registration representing your bot, not your Microsoft Teams app. You can check to make sure that the ID matches the one you selected for your associated bot: In Developer Portal for Teams > [Your App] > App Features:In Azure Portal > App Registrations:
Navigate to Manage > Certificates & secrets in the sidebar.
Under Client Secrets, click the + New client secret button.
Name your client credentials and select an expiry that works best for your application. Press Add to create your credentials.
Copy the displayed Bot Client Secret under the Value column.
Note: You will need to periodically create new and update your Bot Client Secret as they expire for all Microsoft integrations.
Select Microsoft Teams from the Integrations Catalog.
Under Integrations > Connected Integrations > Microsoft Teams > App Configuration > Configure, fill out your credentials from the end of Step 1 and Step 2 in their respective sections:
Bot ID: Found in the Microsoft Azure Portal, under App registrations > Application (client) ID. This should be the Client ID of the app registration representing your bot, not your Microsoft Teams app.
Permissions: Select the scopes you’ve requested for your application. For a list of recommended scopes, please view this integration within your Paragon dashboard. View dashboard.
Press the purple “Save Changes” button to save your credentials.
Note: You should only add the scopes you’ve requested in your application page to Paragon.
Once your users have connected their Microsoft Teams account, you can use the Paragon SDK to access the Microsoft Teams API on behalf of connected users.See the Microsoft Teams REST API documentation for their full API reference.Any Microsoft Teams API endpoints can be accessed with the Paragon SDK as shown in this example.
Copy
Ask AI
// You can find your project ID in the Overview tab of any Integration// Authenticate the userparagon.authenticate(<ProjectId>, <UserToken>);// List Channelsparagon.request("microsoftTeams", "channels", { method: "GET",});// Send message in a channelparagon.request("microsoftTeams", "channels/<channel-id>/messages", { method: "POST", body: { "content": "Hello World!" }});
Webhook triggers can be used to run workflows based on events in your users’ Microsoft Teams account. For example, you might want to trigger a workflow whenever new chats are created in Microsoft Teams to sync your users’ Microsoft Teams chats to your application in real-time.
You can find the full list of Webhook Triggers for Microsoft Teams below: