<?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 Unauthorized 401 error while embedding power PBI reports in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Unauthorized-401-error-while-embedding-power-PBI-reports/m-p/2829900#M39145</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;we are getting an Unauthorised 401 error w&lt;SPAN&gt;hen running the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=node-js#step-8---embed-your-content" target="_blank" rel="noopener nofollow noreferrer"&gt;examples of embedded for your customers&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;applications. I have followed all the steps without skipping any.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;I have tried:&lt;/DIV&gt;&lt;DIV&gt;- Given the right information (clientId, reported, workspaceID, tenantId, client secret etc)&lt;/DIV&gt;&lt;DIV&gt;- The authentication mode is ServicePrincipal, and I'm using the credentials of the Global Admin (same user that created the dataset, report, has all permissions, App Registration Owner etc..)&lt;/DIV&gt;&lt;DIV&gt;- Enabled service principals and embed content in power bi services Tenant settings, added the security group.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-&amp;nbsp; All permissions granted on&amp;nbsp;Power BI REST APIs on the App Registration.&lt;/DIV&gt;&lt;DIV&gt;-&amp;nbsp;Workspace access is enabled as an admin for the security group/service principle.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If anyone has any clues please let us know.&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (1).png" style="width: 435px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/800920i438F7260F9BD220A/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftTeams-image (1).png" alt="MicrosoftTeams-image (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 10 Oct 2022 05:08:51 GMT</pubDate>
    <dc:creator>NakkaHemanth</dc:creator>
    <dc:date>2022-10-10T05:08:51Z</dc:date>
    <item>
      <title>Unauthorized 401 error while embedding power PBI reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unauthorized-401-error-while-embedding-power-PBI-reports/m-p/2829900#M39145</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;we are getting an Unauthorised 401 error w&lt;SPAN&gt;hen running the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=node-js#step-8---embed-your-content" target="_blank" rel="noopener nofollow noreferrer"&gt;examples of embedded for your customers&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;applications. I have followed all the steps without skipping any.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;I have tried:&lt;/DIV&gt;&lt;DIV&gt;- Given the right information (clientId, reported, workspaceID, tenantId, client secret etc)&lt;/DIV&gt;&lt;DIV&gt;- The authentication mode is ServicePrincipal, and I'm using the credentials of the Global Admin (same user that created the dataset, report, has all permissions, App Registration Owner etc..)&lt;/DIV&gt;&lt;DIV&gt;- Enabled service principals and embed content in power bi services Tenant settings, added the security group.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-&amp;nbsp; All permissions granted on&amp;nbsp;Power BI REST APIs on the App Registration.&lt;/DIV&gt;&lt;DIV&gt;-&amp;nbsp;Workspace access is enabled as an admin for the security group/service principle.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If anyone has any clues please let us know.&lt;/DIV&gt;&lt;DIV&gt;Thanks.&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (1).png" style="width: 435px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/800920i438F7260F9BD220A/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftTeams-image (1).png" alt="MicrosoftTeams-image (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Oct 2022 05:08:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unauthorized-401-error-while-embedding-power-PBI-reports/m-p/2829900#M39145</guid>
      <dc:creator>NakkaHemanth</dc:creator>
      <dc:date>2022-10-10T05:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unauthorized 401 error while embedding power PBI reports</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unauthorized-401-error-while-embedding-power-PBI-reports/m-p/2832382#M39166</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/349531"&gt;@NakkaHemanth&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;According to your description, it seems like you have finished all the operations and permission settings. Have you tried to test with the corresponding contents ID with another application or device? (you can extract the embedded id and tokens to test on the playground to confirm if these contents can be used on the embedded iframes) Please share some more detailed information about these operations and tests:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_self"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;In addition, you can also check the device policy and firewall rules to ensure that they weren't blocking the power bi requests.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/admin/power-bi-allow-list-urls" target="_blank"&gt;Add Power BI URLs to allowlist - Power BI | Microsoft Learn&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 01:19:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unauthorized-401-error-while-embedding-power-PBI-reports/m-p/2832382#M39166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-11T01:19:20Z</dc:date>
    </item>
  </channel>
</rss>

