Utilize Windows Service for Sending ChatMessages to a Microsoft Teams Channel.

Nikita Sherbina 0 Reputation points
2023-05-02T14:52:13.4666667+00:00

Hi,

I am currently exploring the feasibility of using MS Teams as an endpoint for our company's product offerings. I have a query regarding Application Permissions.

Our objective is to utilize a Windows Service to post ChatMessages to a specific MS Teams Channel periodically. After conducting research and prototyping, I have found that listing channels, adding channels, and listing teams, etc., all function seamlessly from the Windows Service using Application Permissions, which means no logged-in interactive user is required.

However, it seems that sending a ChatMessage to a Channel is only possible by using Delegated Permissions, which necessitate a logged-in interactive user.

Could you please confirm whether it is accurate that there is no means for a Windows Service utilizing Application Permissions to transmit ChatMessages to a Channel?

Thank you for your help.

Best regards,

Nikita

AISCreen, Inc.
https://www.aiscreen.io/

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,102 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,251 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 3,021 Reputation points Microsoft Vendor
    2023-05-03T05:47:17.0033333+00:00

    Currently sending a ChatMessage to a Channel is only possible by using Delegated Permissions.
    Application permissions are only supported for migration for Sending ChatMessages to a Microsoft Teams Channel.

    Ref Doc: https://learn.microsoft.com/en-us/graph/api/channel-post-messages?view=graph-rest-1.0&tabs=http


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.