<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Send Microsoft Teams message from Application to User</title><link>https://community.appian.com/discussions/f/integrations/39785/send-microsoft-teams-message-from-application-to-user</link><description>Hi, looking for some guidance on how to send Teams messages from our App directly to a user. 
 We tried using the Teams Plugin but found we were limited by only being able to send messages with authentication Authorisation Code Grant (Delegated Permissions</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Send Microsoft Teams message from Application to User</title><link>https://community.appian.com/thread/151862?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2025 20:12:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3d3c13a4-d6b7-4556-9d45-814c8ba47cd6</guid><dc:creator>marilub781042</dc:creator><description>&lt;p data-start="50" data-end="387"&gt;Hey! The main issue is that teams doesn&amp;rsquo;t let an app just send messages as a regular user without each person signing in. The usual workaround is to create a bot or service account in Teams and have your app send messages through that bot. That way, you can send 1:1 messages or chat messages without needing each user to authenticate.&lt;/p&gt;
&lt;p data-start="389" data-end="652"&gt;If you don&amp;rsquo;t need full chat messages and just want to ping users with alerts, using the activity feed notifications API is a simpler and fully supported option. It won&amp;rsquo;t create a normal chat thread, but it&amp;rsquo;s perfect for sending system-to-user notifications.&lt;/p&gt;
&lt;p data-start="654" data-end="757"&gt;So basically, for &amp;ldquo;real&amp;rdquo; messages, go bot route; for simple notifications, activity feed works great.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send Microsoft Teams message from Application to User</title><link>https://community.appian.com/thread/151860?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2025 17:09:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7ac22bc5-666f-4767-925e-3b77e7babf6a</guid><dc:creator>Jesse Knight</dc:creator><description>&lt;p&gt;Hi Guy -&amp;nbsp;With the ServicePrincipal context we have been able to do a directory search for users. I might wind up creating a sync&amp;#39;ed record for this purpose. I successfully tested the user search graph API using the service principal context from Appian.&lt;/p&gt;
&lt;p&gt;For the interactivity, we just had a Service Account setup in AD that will act as a bot, as recommended by our MS365 team.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send Microsoft Teams message from Application to User</title><link>https://community.appian.com/thread/151842?ContentTypeID=1</link><pubDate>Fri, 03 Oct 2025 10:15:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:aafa82e0-b363-4cee-a9ba-de9de68d066e</guid><dc:creator>Guy</dc:creator><description>&lt;p&gt;Thanks Jesse, that&amp;#39;s helpful. Which Graph API are you planning to use to use?&lt;br /&gt;I see for &amp;quot;Send chatMessage in a channel or a chat&amp;quot; (&lt;a href="https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&amp;amp;tabs=http"&gt;https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&amp;amp;tabs=http&lt;/a&gt;),&lt;strong&gt;&amp;nbsp;Application permissions are only supported for migration.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This means you won&amp;#39;t be able to send chat messages directly to users using this API. Have you found another way? The only other way I could see was creating a Teams App and either sending an activity notification or setting up a &amp;quot;Bot&amp;quot; and messaging through that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send Microsoft Teams message from Application to User</title><link>https://community.appian.com/thread/151800?ContentTypeID=1</link><pubDate>Mon, 29 Sep 2025 15:55:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfa43533-7e66-4b0c-a091-84af954db7fb</guid><dc:creator>Jesse Knight</dc:creator><description>&lt;p&gt;Hey Guy,&lt;/p&gt;
&lt;p&gt;There is some great information here -&amp;nbsp;&lt;a href="https://learn.microsoft.com/en-us/graph/auth-v2-service?tabs=http"&gt;learn.microsoft.com/.../auth-v2-service&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In order for Teams to generate chat messages based upon a system account, the term to research is &amp;quot;Service Principal&amp;quot;. There&amp;#39;s way more detail about that in the link above than I could accurately provide here.&lt;/p&gt;
&lt;p&gt;We&amp;#39;re still in the early stages of our API, so there may be additional hurdles. But here is what we have so far.&lt;/p&gt;
&lt;p&gt;For the graph API, you might not need the plugin in all cases.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create a HTTP Connected System
&lt;ul&gt;
&lt;li&gt;Choose OAuth Client Credentials, input client id and secret&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Token Request Endpoint&lt;/strong&gt;: As noted in the above link - &lt;code&gt;login.microsoftonline.com/{Tenant_Id}&lt;span class="webhooks-components__text-container__xtgjg4" data-slate-node="element" data-slate-fragment="JTVCJTdCJTIydHlwZSUyMiUzQSUyMnRleHQtZWxlbWVudCUyMiUyQyUyMmNoaWxkcmVuJTIyJTNBJTVCJTdCJTIydGV4dCUyMiUzQSUyMjY5ZjgzZTQ3LTUyZWQtNDgxNS05M2FiLTk2NWI5MmY0YjEwYiUyMiU3RCU1RCU3RCUyQyU3QiUyMnR5cGUlMjIlM0ElMjJ0ZXh0LWVsZW1lbnQlMjIlMkMlMjJjaGlsZHJlbiUyMiUzQSU1QiU3QiUyMnRleHQlMjIlM0ElMjIlMkZvYXV0aDIlMkZ2Mi4wJTJGdG9rZW4lMjIlN0QlNUQlN0QlNUQ="&gt;&lt;span data-slate-node="text"&gt;/oauth2/v2.0/token&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Create integration
&lt;ul&gt;
&lt;li&gt;Use your connected system for authentication&lt;/li&gt;
&lt;li&gt;Use the graph API for the URL, then add the appropriate query parameters / body based upon what you&amp;#39;re trying to do. Pay specific attention to the quotes in query parameters.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/18/pastedimage1759160826770v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Also keep in mind that, functionally, a lot of the graph messaging API relies on Teams Id&amp;#39;s, not email / names. We&amp;#39;re still trying to solve that in a more fluid way.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have experience with Activity Notifications, but they will likely be our fall back plan if our currently-designed Teams chat features are not&amp;nbsp;approved for production by our security team. Lots of folks get involved when there is potential (even if mitigated) for a service account to act on behalf of a user.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>