Tags | Integrations | MS Teams |
ADMIN PRIVILEGES REQUIRED
This documentation is for Stack Overflow for Teams Enterprise. Free, Basic, and Business users can access their documentation here. Find your plan.
Overview
If you’re using the Stack Overflow for Teams Enterprise (SOE) Microsoft Teams integration, you’ll eventually need to update the MS Teams bot app password for the integration to continue working. Setting the bot password is part of the initial MS Teams integration installation.
NOTE: There's no direct way to tell when your bot password will expire at https://dev.teams.microsoft.com. Your IT admins set password policy at the Microsoft enterprise level, so you may want to reach out to them for details on your company's password policy.
Confirm an expired bot password
If you've made no changes to your MS Teams integration and it stops working, your app bot password has likely expired. Here's what to look for:
You've stopped receiving webhook notifications and/or replies from the chatbot within your MS Teams integration.
You see
System.NullReferenceException: Object reference not set to an instance of an object
exceptions on the /admin/errors page. These exceptions may be thrown from /integrations/microsoft-teams/messages or another MS Teams integration-related route.You see an alert stating that the integration is broken when navigating to your site's Microsoft Teams setup page at Admin settings -> Microsoft Teams.
The following process will help you get your MS Teams integration working again.
Generate a new secret on MS Teams
Navigate to https://dev.teams.microsoft.com/bots to access the Bot Management tool in your Microsoft Teams Developer Portal.
Locate and click on your bot.
Click Client Secrets to generate a new Client Secret.
Click + Add a secret.
Copy the new secret to your clipboard.
NOTE: Microsoft's Copy to clipboard button (clipboard and paper icon) can be unreliable. We recommend manually selecting and copying the secret.
Update the password on SOE
Go to your SOE site's Microsoft Teams setup page by clicking Admin settings in the left-hand menu, then Microsoft Teams.
Follow the instructions in the "Update your bot credentials" section.
Paste the new secret you copied earlier into the designated field and click Update password.