<?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>How to add users in the teams chat via integration</title><link>https://community.appian.com/discussions/f/integrations/29468/how-to-add-users-in-the-teams-chat-via-integration</link><description>have created the teams chat via integration, so have added the details like tenant id, client id, client secret under connected systems, and then used it under integration and created the new group chat, and i was trying to add users under user info,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to add users in the teams chat via integration</title><link>https://community.appian.com/thread/116812?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 11:22:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8dfb9104-5a1d-41ab-937b-be37ab6b2d54</guid><dc:creator>Mathieu Drouin</dc:creator><description>&lt;p&gt;Don&amp;#39;t know if this will work, I combined Example #2 (group chat) and #3 (using the userprincipalName in lieu of the uuid)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://learn.microsoft.com/en-us/graph/api/chat-post?view=graph-rest-1.0&amp;amp;tabs=http"&gt;learn.microsoft.com/.../chat-post&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  &amp;quot;chatType&amp;quot;: &amp;quot;group&amp;quot;,
  &amp;quot;topic&amp;quot;: &amp;quot;Group chat title&amp;quot;,
  &amp;quot;members&amp;quot;: [
    {
      &amp;quot;@odata.type&amp;quot;: &amp;quot;#microsoft.graph.aadUserConversationMember&amp;quot;,
      &amp;quot;roles&amp;quot;: [&amp;quot;owner&amp;quot;],
      &amp;quot;user@odata.bind&amp;quot;: &amp;quot;https://graph.microsoft.com/v1.0/users(&amp;#39;jacob@contoso.com&amp;#39;)&amp;quot;
    },
    {
      &amp;quot;@odata.type&amp;quot;: &amp;quot;#microsoft.graph.aadUserConversationMember&amp;quot;,
      &amp;quot;roles&amp;quot;: [&amp;quot;owner&amp;quot;],
      &amp;quot;user@odata.bind&amp;quot;: &amp;quot;https://graph.microsoft.com/v1.0/users(&amp;#39;alex@contoso.com&amp;#39;)&amp;quot;
    }
  ]
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you want to add members to an already existing group chat, you should use the addMembers endpoint.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://learn.microsoft.com/en-us/graph/api/chat-post-members?view=graph-rest-1.0&amp;amp;tabs=http"&gt;learn.microsoft.com/.../chat-post-members&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
    &amp;quot;@odata.type&amp;quot;: &amp;quot;#microsoft.graph.aadUserConversationMember&amp;quot;,
    &amp;quot;user@odata.bind&amp;quot;: &amp;quot;https://graph.microsoft.com/v1.0/users(&amp;#39;jacob@contoso.com&amp;#39;)&amp;quot;
    &amp;quot;roles&amp;quot;: [&amp;quot;owner&amp;quot;]
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>