Use Windows Service to Send ChatMessage to MS Teams Channel

Woody Cox 46 Reputation points
2021-01-04T13:09:17.5+00:00

Hello,
I am currently evaluating MS Teams as a potential end-point for my company's product offering, and I have a question related to Application Permissions.

We would like to use a Windows Service to periodically post ChatMessages to a specific MS Teams Channel. My research and prototyping has proven that listing channels, adding channels, listing teams, etc. all work fine from the Windows Service using Application Permissions (i.e. NO logged-in interactive user is required).

However, it appears that actually sending a ChatMessage to a Channel is only supported using Delegated Permissions (which require a logged-in interactive user).

Can you please verify that this is indeed the case - that there is no way for a Windows Service using Application Permissions to send ChatMessages to a Channel?

Thanks!

Woody Cox

Visix, Inc.
www.visix.com

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,796 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2021-01-04T13:24:32.37+00:00

    Yes, you can use only Delegated permissions at this point. Here's the documentation.


1 additional answer

Sort by: Most helpful
  1. Deva-MSFT 2,256 Reputation points Microsoft Employee
    2021-01-04T15:24:32.63+00:00

    Thanks for using the functionality. As per documentation it applies to beta endpoint now. Unfortunately i don't have any insight on this.

    Being said that i remember a related user voice been filed, consider upvoting it - so that it can be considered as feature request.

    0 comments No comments