send message to teams chat using machine (bot) account

Copper Contributor

I want to send notifications to a teams chat from external app. Currently I managed to do so using a Power Automate flow, but the trouble is whenever the flow is sending the notification, I see it uses my own account (it tells: "XY via Power Automate"), that means that after one year or so I will need to reauthenticate in the flow, otherwise the notifications will cease to work.

 

I know that I could use webhooks (https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming...) but they only work for teams, not chats...

 

I'm looking for a more robust solution where instead of using my own account I would send the notifications via e.g. a service principal account, so that it authenticates by itself and will not require manual reauthentication as the Power Automate flow does.

 

I'm not sure if that would be the right approach... I'd appreciate some general hints of how to accomplish that or links to helpful docs.

1 Reply

@adamo10 

Since the community has not yet responded to your post, you might want to seek assistance with other resources that are focused on tech support:

 

  • Ask your IT manager to open a support case or call Microsoft using the support line you were given.  Other options for business subscription admins are listed here:

Get support | Microsoft Docs

https://support.serviceshub.microsoft.com/supportforbusiness/create