<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Microsoft Graph API in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Microsoft-Graph-API/m-p/98568#M46292</link>
    <description>&lt;P&gt;Hello Gemma,&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Could you give more details? Did an error occur?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Sat, 23 Sep 2023 00:21:36 GMT</pubDate>
    <dc:creator>LeonardoSQueiroz</dc:creator>
    <dc:date>2023-09-23T00:21:36Z</dc:date>
    <item>
      <title>Microsoft Graph API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Microsoft-Graph-API/m-p/98567#M46291</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Is there a way to use the Microsoft Graph API to send a channel message if the logged in user has MFA enabled on their account?&lt;/P&gt;
&lt;P&gt;Really struggling to get this to work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently using the below objects:&lt;/P&gt;
&lt;P&gt;MSAL.NET::Get Auth Token - Username and Password&lt;/P&gt;
&lt;P&gt;Microsoft Graph - Teams::Send Channel Message&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Microsoft Graph API works in Postman fine, just can't get it to work in Blue Prism.&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 15:20:36 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Microsoft-Graph-API/m-p/98567#M46291</guid>
      <dc:creator>GemmaHolmes</dc:creator>
      <dc:date>2023-09-22T15:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Microsoft-Graph-API/m-p/98568#M46292</link>
      <description>&lt;P&gt;Hello Gemma,&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Could you give more details? Did an error occur?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 00:21:36 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Microsoft-Graph-API/m-p/98568#M46292</guid>
      <dc:creator>LeonardoSQueiroz</dc:creator>
      <dc:date>2023-09-23T00:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph API</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Microsoft-Graph-API/m-p/98569#M46293</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/647"&gt;@LeonardoSQueiroz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If I try and used the "Get Auth Token - Username and Password" action in MSAL.NET object, I get the below error:&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;EM&gt;MSAL.Desktop.4.42.1.0.MsalClientException: ErrorCode: parsing_wstrust_response_failed&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;EM&gt;Microsoft.Identity.Client.MsalClientException: There was an error parsing WS-Trust response from the endpoint. This may occur if there is an issue with your ADFS configuration. See &lt;A href="https://aka.ms/msal-net-iwa-troubleshooting" target="test_blank"&gt;https://aka.ms/msal-net-iwa-troubleshooting&lt;/A&gt; for more details. Error Message: Federated service at &lt;A href="https://autologon.microsoftazuread-sso.com/***REDACTED***" target="test_blank"&gt;https://autologon.microsoftazuread-sso.com/***REDACTED***&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;If I use the "Get Auth Token - Client Secret" action in MSAL.NET object, it gets the access token, however when I then go to use the "Send Channel Message" action in the Microsoft Graph - Teams webservice, I get the below error:&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;EM&gt;Internal : Unexpected error Error during Web API HTTP Request&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;EM&gt;HTTP Status Code: 403&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 11.0pt; line-height: 107%; font-family: &amp;quot;Calibri&amp;quot;, sans-serif"&gt;HTTP Response Content: {"error":{"code":"Forbidden","message":"Missing role permissions on the request. API requires one of 'Teamwork.Migrate.All'. Roles on the request &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="MsoNormal"&gt;
&lt;/P&gt;&lt;P class="MsoNormal"&gt;From my understanding of what I've looked up is that for this error to be resolved it requires the App permissions in Azure to be set to Application-Only and the Teams Group and Channel need to have their settings changed to be in a migration state. But that the "Send Channel Message" action only works if the App permissions have Delegated access, which it does.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 16:03:24 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Microsoft-Graph-API/m-p/98569#M46293</guid>
      <dc:creator>GemmaHolmes</dc:creator>
      <dc:date>2023-09-23T16:03:24Z</dc:date>
    </item>
  </channel>
</rss>

