<?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: Generating an access token in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Generating-an-access-token/m-p/1624528#M27512</link>
    <description>&lt;P&gt;&lt;SPAN&gt;If someone has come across this and the solution for this, I highly appreciated. Thanks for contributing ideas.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 19:28:48 GMT</pubDate>
    <dc:creator>dpm</dc:creator>
    <dc:date>2021-01-26T19:28:48Z</dc:date>
    <item>
      <title>Generating an access token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Generating-an-access-token/m-p/1617416#M27430</link>
      <description>&lt;P&gt;I am generating an access token to use with the Power BI REST API but for users with MFA enabled that doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request: &lt;A href="https://login.microsoftonline.com/common/oauth2/token" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/common/oauth2/token&lt;/A&gt;&lt;BR /&gt;client_id: ...&lt;BR /&gt;grant_type: password&lt;BR /&gt;resource: &lt;A href="https://analysis.windows.net/powerbi/api" target="_blank" rel="noopener"&gt;https://analysis.windows.net/powerbi/api&lt;/A&gt;&lt;BR /&gt;username: ...&lt;BR /&gt;password: ...&lt;BR /&gt;client_secret: ...&lt;/P&gt;&lt;P&gt;Error message:&lt;BR /&gt;AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to obtain the access token without disabling MFA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 17:51:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Generating-an-access-token/m-p/1617416#M27430</guid>
      <dc:creator>dpm</dc:creator>
      <dc:date>2021-01-22T17:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Generating an access token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Generating-an-access-token/m-p/1618245#M27448</link>
      <description>&lt;P&gt;There are a couple of posts in this forum on that topic.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Power-BI-Admin-API-with-MFA/td-p/1117389" target="_blank"&gt;https://community.powerbi.com/t5/Developer/Power-BI-Admin-API-with-MFA/td-p/1117389&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Bypassing-MFA-to-automate-data-refreshing-using-REST-API/td-p/516014" target="_blank"&gt;https://community.powerbi.com/t5/Developer/Bypassing-MFA-to-automate-data-refreshing-using-REST-API/td-p/516014&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 14:52:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Generating-an-access-token/m-p/1618245#M27448</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-01-23T14:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generating an access token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Generating-an-access-token/m-p/1619080#M27453</link>
      <description>&lt;P&gt;Thank you Ilbendlin,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Disabling MFA is not an option unfortunately. I read answers from the second post but from what I can see SPN can't be used to obtain the access token needed. I've seen other applications offering the same functionality using the API and it was compatible for users with MFA enabled. Is it maybe possible to use the 'client_credentials' grant type for obtaining the access token somehow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 19:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Generating-an-access-token/m-p/1619080#M27453</guid>
      <dc:creator>dpm</dc:creator>
      <dc:date>2021-01-24T19:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Generating an access token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Generating-an-access-token/m-p/1624528#M27512</link>
      <description>&lt;P&gt;&lt;SPAN&gt;If someone has come across this and the solution for this, I highly appreciated. Thanks for contributing ideas.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 19:28:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Generating-an-access-token/m-p/1624528#M27512</guid>
      <dc:creator>dpm</dc:creator>
      <dc:date>2021-01-26T19:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Generating an access token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Generating-an-access-token/m-p/2230530#M33370</link>
      <description>&lt;P&gt;through Powershell it can be done, have a look at module MicrosoftPowerBIMgmt&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 14:23:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Generating-an-access-token/m-p/2230530#M33370</guid>
      <dc:creator>WouterV</dc:creator>
      <dc:date>2021-12-09T14:23:13Z</dc:date>
    </item>
  </channel>
</rss>

