<?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/MSAL.net - delegated -device in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97423#M3016</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The IT team that manages Azure told us that the problem is that the information device was empty in our call and we need to add it. The user was already excluded from MFA.&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35400.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35460i5F74317B805D94FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="35400.png" alt="35400.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 15 Mar 2023 17:55:00 GMT</pubDate>
    <dc:creator>acatalano</dc:creator>
    <dc:date>2023-03-15T17:55:00Z</dc:date>
    <item>
      <title>Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97421#M3014</link>
      <description>&lt;P&gt;Hi, I read many threads about Microsoft Graph and MSAL.net, but I didn't find my problem.&lt;/P&gt;
&lt;P&gt;I am trying to authenticate to azure with delegated permission but am getting these errors.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;When I run Microsoft Graph - Authentication::Get Delegated Access Token (Blue Prism VBO), the response was:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="ui-provider vp b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;&lt;SPAN class="cm-string"&gt;"invalid_grant"&lt;/SPAN&gt;,&lt;SPAN class="cm-string cm-property"&gt;"error_description"&lt;/SPAN&gt;:&lt;SPAN class="cm-string"&gt;"AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;When I run MSAL.NET::Get Auth Token - Username and Password (Blue Prism VBO), the response was:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="ui-provider vp b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak" dir="ltr"&gt;System.AggregateException: Se han producido uno o varios errores. ---&amp;gt; Microsoft.Identity.Client.MsalUiRequiredException: AADSTS50079: Due to a configuration change made by your administrator, or because you moved to a new location, you must enroll in multi-factor authentication to access.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;In the Azure logs we found that the device information was empty and Microsoft support informed us that we must add it in the code.&lt;/P&gt;
&lt;P&gt;The device is already hybridized in azure. The user account too.&lt;/P&gt;
&lt;P&gt;So we need to add the device data to the action, any idea how to do it?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 19:46:03 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97421#M3014</guid>
      <dc:creator>acatalano</dc:creator>
      <dc:date>2023-03-13T19:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97422#M3015</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/27919"&gt;@acatalano&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;My guess is that both of your errors relate to the fact that 2-factor authentication is enabled in your environment. There are two options here:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Ask you IT folks to disable 2FA for any accounts used by Digital Workers.&lt;/LI&gt;
&lt;LI&gt;If that's not an option, there are a couple &lt;A href="https://digitalexchange.blueprism.com/dx/search?keyword=two%20factor&amp;amp;page=1" target="_blank" rel="noopener"&gt;2FA solutions&lt;/A&gt; available on the the Digital Exchange. I don't think either one has been tested specifically with authentication in Graph, but they may work for you.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Eric&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 15:44:12 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97422#M3015</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2023-03-15T15:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97423#M3016</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;The IT team that manages Azure told us that the problem is that the information device was empty in our call and we need to add it. The user was already excluded from MFA.&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35400.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35460i5F74317B805D94FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="35400.png" alt="35400.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 15 Mar 2023 17:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97423#M3016</guid>
      <dc:creator>acatalano</dc:creator>
      <dc:date>2023-03-15T17:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97424#M3017</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/27919"&gt;@acatalano&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I assume the MFA exclusion was made after your tests, otherwise you never should have received an MFA error. Regarding the device info, can your IT folks expand on what exactly they expect to see? Is it just the Azure AD joined device ID?&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 22:25:54 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97424#M3017</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2023-03-15T22:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97425#M3018</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt; we did test every day, including after MFA exclusion.&lt;/P&gt;
&lt;P&gt;Yes, because one of the security policies is to report the device ID. And as you will have seen in the image that I shared with you previously, it arrives empty.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 02:54:26 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97425#M3018</guid>
      <dc:creator>acatalano</dc:creator>
      <dc:date>2023-03-16T02:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97426#M3019</link>
      <description>&lt;P&gt;HI &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/27919"&gt;@acatalano&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;have you tried getting application access token without delegation?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 17:47:23 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97426#M3019</guid>
      <dc:creator>kkazantsev</dc:creator>
      <dc:date>2023-03-17T17:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97427#M3020</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1343"&gt;@kkazantsev&lt;/a&gt; Yes, we tried and we received the token ok, the problem with that comes later because due to security policies they cannot give us permission to the apis. We must use delegate to control access.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 20:26:58 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97427#M3020</guid>
      <dc:creator>acatalano</dc:creator>
      <dc:date>2023-03-17T20:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97428#M3021</link>
      <description>&lt;P&gt;Hello.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have same issue as Agustin, we are currently searching for secure solution around this problem... And currently no clear answer that would be best in our situation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 09:07:28 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97428#M3021</guid>
      <dc:creator>MantasPadimansk</dc:creator>
      <dc:date>2023-05-16T09:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97429#M3022</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/46455"&gt;@MantasPadimansk&lt;/a&gt;&amp;nbsp;Did you solve that problem?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 14:11:36 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/97429#M3022</guid>
      <dc:creator>acatalano</dc:creator>
      <dc:date>2024-03-14T14:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/112423#M3662</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Any solution to the issue, I am also using Delegated access, can't use application permissions due to policies, I am able to get the access token using client secret, but it is failing while sending mail: "Error: Access Denied", and when using username password to get the access token it is failing in getting it: Error:"The user or administrator has not consented to use the application with ID:".&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 08:47:23 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/112423#M3662</guid>
      <dc:creator>sarthak_86</dc:creator>
      <dc:date>2024-07-17T08:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/112428#M3663</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/41274"&gt;@sarthak_86&lt;/a&gt;&amp;nbsp;based on the error message your administrator hasn't consented to the use of the Graph API for the application ID you're using. I believe it's called out in the documentation as a necessary step for a DW to use delegated permissions.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 13:34:43 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/112428#M3663</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2024-07-17T13:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Graph/MSAL.net - delegated -device</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/112429#M3664</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;, I was confused with the permissions, I will request the administrator for this and will see if it works or not.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 13:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Microsoft-Graph-MSAL-net-delegated-device/m-p/112429#M3664</guid>
      <dc:creator>sarthak_86</dc:creator>
      <dc:date>2024-07-17T13:41:00Z</dc:date>
    </item>
  </channel>
</rss>

