<?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 embed power-bi - getting 401 Unauthorized: Error while retrieving Embed URL in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/embed-power-bi-getting-401-Unauthorized-Error-while-retrieving/m-p/2235830#M33424</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use power-bi report in python example app, but I am getting&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error Details:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;401 Unauthorized: Error while retrieving Embed URL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unauthorized:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RequestId: XXXXX&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;I followed this tutorial&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=python" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=python &lt;/A&gt;and other power-bi tutorials, i also changed different configurations in power-bi and AD apps but it didn't resolve the problem.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also, when I used power-bi rest APIs via postman, I was able to generate a valid token without RLS.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/XXX/reports/YYY/generatetoken" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/XXX/reports/YYY/generatetoken&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please help to resolve the issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 14:47:14 GMT</pubDate>
    <dc:creator>alteco</dc:creator>
    <dc:date>2021-12-13T14:47:14Z</dc:date>
    <item>
      <title>embed power-bi - getting 401 Unauthorized: Error while retrieving Embed URL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/embed-power-bi-getting-401-Unauthorized-Error-while-retrieving/m-p/2235830#M33424</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use power-bi report in python example app, but I am getting&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error Details:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;401 Unauthorized: Error while retrieving Embed URL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unauthorized:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RequestId: XXXXX&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;I followed this tutorial&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=python" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=python &lt;/A&gt;and other power-bi tutorials, i also changed different configurations in power-bi and AD apps but it didn't resolve the problem.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also, when I used power-bi rest APIs via postman, I was able to generate a valid token without RLS.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/groups/XXX/reports/YYY/generatetoken" target="_blank" rel="noopener"&gt;https://api.powerbi.com/v1.0/myorg/groups/XXX/reports/YYY/generatetoken&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please help to resolve the issue?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 14:47:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/embed-power-bi-getting-401-Unauthorized-Error-while-retrieving/m-p/2235830#M33424</guid>
      <dc:creator>alteco</dc:creator>
      <dc:date>2021-12-13T14:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: embed power-bi - getting 401 Unauthorized: Error while retrieving Embed URL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/embed-power-bi-getting-401-Unauthorized-Error-while-retrieving/m-p/2241602#M33477</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="344101" data-lia-user-login="alteco" class="lia-mention lia-mention-user"&gt;alteco&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you&amp;nbsp;&lt;SPAN&gt;add the registered app in ADD (service principal) to a security group, and then add it in Power BI Admin Portal?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If not, try this to see if the problem persists&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 05:19:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/embed-power-bi-getting-401-Unauthorized-Error-while-retrieving/m-p/2241602#M33477</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-12-16T05:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: embed power-bi - getting 401 Unauthorized: Error while retrieving Embed URL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/embed-power-bi-getting-401-Unauthorized-Error-while-retrieving/m-p/2241921#M33480</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Yes, I already did it and it didn't solve the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 08:00:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/embed-power-bi-getting-401-Unauthorized-Error-while-retrieving/m-p/2241921#M33480</guid>
      <dc:creator>alteco</dc:creator>
      <dc:date>2021-12-16T08:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: embed power-bi - getting 401 Unauthorized: Error while retrieving Embed URL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/embed-power-bi-getting-401-Unauthorized-Error-while-retrieving/m-p/4618166#M59926</link>
      <description>&lt;P&gt;Hi, did you find a way to solve the issue? I have the same error&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 12:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/embed-power-bi-getting-401-Unauthorized-Error-while-retrieving/m-p/4618166#M59926</guid>
      <dc:creator>ilknv</dc:creator>
      <dc:date>2025-03-20T12:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: embed power-bi - getting 401 Unauthorized: Error while retrieving Embed URL</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/embed-power-bi-getting-401-Unauthorized-Error-while-retrieving/m-p/4622115#M59966</link>
      <description>&lt;P&gt;you must add the service principal with proper permissions and add it to the workspace as the role you wish and then you must embedd the report by passing the tenant id , client secret for authenticating purpose and group_id and report id to specify the report .The group id must be the workspace id where you have added the service principal.For RLS you must pass the role to get authenticated.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kandeebaraj G&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 10:03:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/embed-power-bi-getting-401-Unauthorized-Error-while-retrieving/m-p/4622115#M59966</guid>
      <dc:creator>Kandeebaraj_G</dc:creator>
      <dc:date>2025-03-24T10:03:50Z</dc:date>
    </item>
  </channel>
</rss>

