<?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: Automated API call blocked by 2FA in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Automated-API-call-blocked-by-2FA/m-p/4278190#M58233</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/793932"&gt;@cboisvert&lt;/a&gt;&amp;nbsp;Use Selenium with manual 2FA for one-time authentication, but be prepared to refresh the session periodically&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2024 11:41:53 GMT</pubDate>
    <dc:creator>sangameshks</dc:creator>
    <dc:date>2024-11-11T11:41:53Z</dc:date>
    <item>
      <title>Automated API call blocked by 2FA</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automated-API-call-blocked-by-2FA/m-p/4278134#M58230</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to set up a Python script that automates logging into my PowerBI account, navigating to a dashboard, and sharing a screenshot of that dashboard to a Slack channel once every day.&lt;BR /&gt;I'm struggling with 2FA, as this prevents me from automating this process. Any advice on how to get around the challenges with 2FA without actually disabling it?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 10:55:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automated-API-call-blocked-by-2FA/m-p/4278134#M58230</guid>
      <dc:creator>cboisvert</dc:creator>
      <dc:date>2024-11-11T10:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Automated API call blocked by 2FA</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automated-API-call-blocked-by-2FA/m-p/4278184#M58232</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/793932"&gt;@cboisvert&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could for example use an Entra Id app registration/service principal to interact with the Power BI api's:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Edit:&lt;/U&gt; And here are two code samples of that approach:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AntoineDW/powerbi-rest-api-python" target="_blank"&gt;https://github.com/AntoineDW/powerbi-rest-api-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/areed1192/power-bi-python-api" target="_blank"&gt;https://github.com/areed1192/power-bi-python-api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found in this thread:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Developer/Connect-to-Power-BI-API-via-Python/m-p/2302692" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Developer/Connect-to-Power-BI-API-via-Python/m-p/2302692&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 11:49:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automated-API-call-blocked-by-2FA/m-p/4278184#M58232</guid>
      <dc:creator>Expiscornovus</dc:creator>
      <dc:date>2024-11-11T11:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Automated API call blocked by 2FA</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automated-API-call-blocked-by-2FA/m-p/4278190#M58233</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/793932"&gt;@cboisvert&lt;/a&gt;&amp;nbsp;Use Selenium with manual 2FA for one-time authentication, but be prepared to refresh the session periodically&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 11:41:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automated-API-call-blocked-by-2FA/m-p/4278190#M58233</guid>
      <dc:creator>sangameshks</dc:creator>
      <dc:date>2024-11-11T11:41:53Z</dc:date>
    </item>
  </channel>
</rss>

