Share via

Can a Service Principal [App] be configured to send system messages in a Teams chat/channel using MS Graph API

Soumya Prateek Raul 90 Reputation points Microsoft Employee
2026-01-08T11:42:30.37+00:00

Can a Service Principal [App] be configured to send system messages in a Teams chat/channel using MS Graph API.

Any doc that i can follow to setup this flow

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

0 comments No comments

Answer accepted by question author

Kudos-Ng 15,050 Reputation points Microsoft External Staff Moderator
2026-01-08T13:18:06.64+00:00

Hi Soumya Prateek Raul,

Thank you for posting your question in the Microsoft Q&A forum. 

As far as I know, the Microsoft Graph API endpoints used to send messages to a Teams chat or channel currently support only delegated permissions, which require a user context (user login / user token). Application permissions (app‑only / Service Principal) are not supported for sending normal chat or channel messages. App‑only permissions are only allowed for importing messages during migration scenarios, not for sending live messages.

Because of this, it is unfortunately not possible to configure a Service Principal (app‑only identity) to send messages in the way you described.

At the moment, the only valid approach to send messages into a Teams chat or channel without relying on a user’s identity is to use a Bot application (Azure Bot / Bot Framework). However, the bot must be added to the chat or channel before it can send any messages there.

Reference: https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http

I hope this clarifies the current limitations and helps you move forward.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. AI answer

    2026-01-08T11:43:37.7966667+00:00

    Yes, a Service Principal can be configured to send messages in a Teams chat or channel. To set this up, you would typically use Power Automate to create a flow that utilizes the Service Principal to send messages. Here are the general steps you would follow:

    1. Create a Service Principal: Ensure that you have a Service Principal created in Azure Active Directory that can be used to authenticate and send messages.
    2. Set Up Power Automate: Use Power Automate to create a flow that triggers based on your desired event (e.g., when a file is created).
    3. Use the Microsoft Teams Connector: In your flow, use the Microsoft Teams connector to post messages. You can configure the flow to send messages as the Service Principal.
    4. Share Connections: Make sure that the connections required for the flow are shared with the Service Principal application user.
    5. Test the Flow: After setting up the flow, test it to ensure that messages are being sent correctly to the Teams chat or channel.

    For detailed instructions, you can refer to the documentation on using Power Automate and the capabilities of Service Principals in managing flows.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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