<?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: getting error PowerBINotAuthorizedException in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/getting-error-PowerBINotAuthorizedException/m-p/2603317#M36994</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/404244"&gt;@ravenmike&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#considerations-and-limitations" target="_self"&gt;Considerations and limitations&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;My Workspace&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;isn't supported when using service principal.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;As far as I know, we need to create a security group in Azure portal and then add the Service Principal as a member in that group.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#step-3---enable-the-power-bi-service-admin-settings" target="_self"&gt;Step 3 - Enable the Power BI service admin settings&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Enable the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Allow service principals to use Power BI APIs&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;switch either for the entire organization or for the specific security group you created in Azure AD.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1656317318628.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/738715i21A7552F7EC322DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1656317318628.png" alt="RicoZhou_0-1656317318628.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#step-4---add-the-service-principal-to-your-workspace" target="_self"&gt;Step 4 - Add the service principal to your workspace&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To enable your Azure AD app to access items such as reports, dashboards and datasets in the Power BI service, add the service principal entity, or the security group that includes your service principal, as a member or admin to your workspace.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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>Mon, 27 Jun 2022 08:09:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-27T08:09:07Z</dc:date>
    <item>
      <title>getting error PowerBINotAuthorizedException</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/getting-error-PowerBINotAuthorizedException/m-p/2595059#M36900</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get embed token for power bi using service principle (app owns data),&amp;nbsp; i have followed all the steps in the microsoft blog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a screenshot of my workspace as well.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When i try to access the apis am getting&amp;nbsp;PowerBINotAuthorizedException&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ravenmike_0-1655903407534.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/736535iFEA5285C82087B96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ravenmike_0-1655903407534.png" alt="ravenmike_0-1655903407534.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 13:15:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/getting-error-PowerBINotAuthorizedException/m-p/2595059#M36900</guid>
      <dc:creator>ravenmike</dc:creator>
      <dc:date>2022-06-22T13:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: getting error PowerBINotAuthorizedException</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/getting-error-PowerBINotAuthorizedException/m-p/2603317#M36994</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/404244"&gt;@ravenmike&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#considerations-and-limitations" target="_self"&gt;Considerations and limitations&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;My Workspace&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;isn't supported when using service principal.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;As far as I know, we need to create a security group in Azure portal and then add the Service Principal as a member in that group.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#step-3---enable-the-power-bi-service-admin-settings" target="_self"&gt;Step 3 - Enable the Power BI service admin settings&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Enable the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Allow service principals to use Power BI APIs&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;switch either for the entire organization or for the specific security group you created in Azure AD.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1656317318628.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/738715i21A7552F7EC322DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1656317318628.png" alt="RicoZhou_0-1656317318628.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal#step-4---add-the-service-principal-to-your-workspace" target="_self"&gt;Step 4 - Add the service principal to your workspace&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To enable your Azure AD app to access items such as reports, dashboards and datasets in the Power BI service, add the service principal entity, or the security group that includes your service principal, as a member or admin to your workspace.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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>Mon, 27 Jun 2022 08:09:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/getting-error-PowerBINotAuthorizedException/m-p/2603317#M36994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-27T08:09:07Z</dc:date>
    </item>
  </channel>
</rss>

