<?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 Power BI Embed Errors in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-Errors/m-p/1229514#M24796</link>
    <description>&lt;P&gt;It was noticed shortly after 7/1 that our production Power BI Embed webpage started returnning "Unauthorized access"I thought it was maybe the app registration secret had expired, nope, it is set to never.&amp;nbsp; I used the production code and configured for &lt;A href="http://localhost:13526/" target="_blank" rel="noopener"&gt;http://localhost:13526/&lt;/A&gt;&amp;nbsp;and yesterday that was working fine, kept working with it and now I get&amp;nbsp;. "The remote server returned an error: (401) Unauthorized." Tried created a new app registration using&amp;nbsp;&lt;A href="https://dev.powerbi.com/apps" target="_blank" rel="noopener"&gt;https://dev.powerbi.com/apps&lt;/A&gt;&amp;nbsp;and set it up server side, usedd &lt;A href="http://localhost:13526/" target="_blank" rel="noopener"&gt;http://localhost:13526/&lt;/A&gt;&amp;nbsp;for the target and redirect urls.&amp;nbsp; After request for credentials, I get the authorization to use the api, and then after that I know get "The remote server returned an error: (401) Unauthorized."&amp;nbsp; I did notice the Embed samples are updated to .Net 4.8, I am not sure if that is what is causing my issue as I used the embed samples from about 3 years ago.&amp;nbsp; Any insight into this is much appreciated. Rick&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2020 00:19:54 GMT</pubDate>
    <dc:creator>fosters4him</dc:creator>
    <dc:date>2020-07-17T00:19:54Z</dc:date>
    <item>
      <title>Power BI Embed Errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-Errors/m-p/1229514#M24796</link>
      <description>&lt;P&gt;It was noticed shortly after 7/1 that our production Power BI Embed webpage started returnning "Unauthorized access"I thought it was maybe the app registration secret had expired, nope, it is set to never.&amp;nbsp; I used the production code and configured for &lt;A href="http://localhost:13526/" target="_blank" rel="noopener"&gt;http://localhost:13526/&lt;/A&gt;&amp;nbsp;and yesterday that was working fine, kept working with it and now I get&amp;nbsp;. "The remote server returned an error: (401) Unauthorized." Tried created a new app registration using&amp;nbsp;&lt;A href="https://dev.powerbi.com/apps" target="_blank" rel="noopener"&gt;https://dev.powerbi.com/apps&lt;/A&gt;&amp;nbsp;and set it up server side, usedd &lt;A href="http://localhost:13526/" target="_blank" rel="noopener"&gt;http://localhost:13526/&lt;/A&gt;&amp;nbsp;for the target and redirect urls.&amp;nbsp; After request for credentials, I get the authorization to use the api, and then after that I know get "The remote server returned an error: (401) Unauthorized."&amp;nbsp; I did notice the Embed samples are updated to .Net 4.8, I am not sure if that is what is causing my issue as I used the embed samples from about 3 years ago.&amp;nbsp; Any insight into this is much appreciated. Rick&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 00:19:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-Errors/m-p/1229514#M24796</guid>
      <dc:creator>fosters4him</dc:creator>
      <dc:date>2020-07-17T00:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embed Errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-Errors/m-p/1231588#M24808</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/135663"&gt;@fosters4him&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A couple of things come to mind...&lt;BR /&gt;Have you configured your app registration (in Azure) to have all required permissions for the actions you are trying to perform with the Power BI REST API?&lt;BR /&gt;&lt;BR /&gt;In Azure you should be able to see something like the following.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattCalderwood_0-1595003295845.png" style="width: 603px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/314297i2D7F4B43C9B31604/image-dimensions/603x184?v=v2" width="603" height="184" role="button" title="MattCalderwood_0-1595003295845.png" alt="MattCalderwood_0-1595003295845.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you are trying to fetch a list of dashboards for instance... then you will need 'Dashboard.Read.All'&amp;nbsp; enabled.&lt;BR /&gt;&lt;BR /&gt;If these are set correctly... and the generated secret hasn't expired, then it may be access to one of your workspaces in Power BI.&lt;BR /&gt;It is worth double checking that the workspace you are connecting through to - has got the registered account listed within the workspace access list.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattCalderwood_1-1595003544337.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/314300i3B37F4AC73B10F73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattCalderwood_1-1595003544337.png" alt="MattCalderwood_1-1595003544337.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I cannot remember if you still need to add the service account as an admin still - but that is what I have mine set to.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if any of this helps.&lt;BR /&gt;Cheers, Matt&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 16:34:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-Errors/m-p/1231588#M24808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-17T16:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embed Errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-Errors/m-p/1239738#M24863</link>
      <description>&lt;P&gt;Hi, The issue was resolved by upgrading the PBI code line to .Net 4.8 and adding SSL to the website (now required for redirect).&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 22:32:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embed-Errors/m-p/1239738#M24863</guid>
      <dc:creator>fosters4him</dc:creator>
      <dc:date>2020-07-21T22:32:37Z</dc:date>
    </item>
  </channel>
</rss>

