Please Advise on How to Send Simple Notifications to Teams

石川 敦己 255 Reputation points
2024-12-17T02:30:11.99+00:00

Hello Microsoft community,

We are exploring ways to notify Teams users about updates to our web application. The application is intended to operate as a multi-tenant app, and due to permission constraints, update notifications will be sent to individual users.

As an implementation approach, we found that we could use the /chats endpoint of the Microsoft Graph API to facilitate one-on-one chats with users, and we are considering using this method. Since we have already created a multi-tenant app verified as a publisher in Microsoft Entra, we were wondering if this app could send notifications as a bot.

However, upon researching, we realized that sending notifications to Teams requires creating a Teams app as a bot using tools like Teams Toolkit or Bot Framework, followed by publishing the app to the Teams store. This would pose a challenge for us, as we plan to develop the notification mechanism using Rust, and we are concerned about language limitations imposed by tools like Teams Toolkit. Additionally, we only need to deliver simple, one-way notifications to individual users, and the bot creation process mentioned above seems overly complex for our use case.

Is there any way to send simple notifications to Teams using only Microsoft Entra and the Microsoft Graph API, without going through the entire process of creating and publishing a Teams bot?

Microsoft Teams | Development
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
Microsoft Security | Microsoft Entra | Other
{count} votes

Accepted answer
  1. Sayali-MSFT 3,991 Reputation points Microsoft External Staff Moderator
    2024-12-17T12:24:04.8033333+00:00

    Hello @石川 敦己,
    Thank you for your inquiry about your Teams app development issue!

    To send simple notifications to Teams users without creating and publishing a Teams bot, you can use the Microsoft Graph API to send proactive messages. This approach allows you to send messages directly to users without the need for a full bot implementation.
    Documentation Link-https://learn.microsoft.com/en-us/graph/teams-send-activityfeednotifications?tabs=desktop%2Chttp
    Sample Link-https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/graph-activity-feed/csharp

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.