<?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: Embedding Service principle AppOwnsData 401 ServicePrincipalIsNotAllowedByTenantAdminSwitch in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/908618#M22080</link>
    <description>&lt;P&gt;I was able to resolve it by going to &lt;STRONG&gt;Power BI Admin&lt;/STRONG&gt; portal (accessible from settings cog on &lt;A href="https://app.powerbi.com/home" target="_blank"&gt;https://app.powerbi.com/home&lt;/A&gt;), selecting &lt;STRONG&gt;Tenant Settings&lt;/STRONG&gt;, and then toggling the &lt;STRONG&gt;Allow service principals to access Power BI APIs&lt;/STRONG&gt; setting to enabled&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the&amp;nbsp;&lt;STRONG&gt;Getting started with service principal&lt;/STRONG&gt; section in this article&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/blog/use-power-bi-api-with-service-principal-preview/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/blog/use-power-bi-api-with-service-principal-preview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jan 2020 21:54:23 GMT</pubDate>
    <dc:creator>vince-koch</dc:creator>
    <dc:date>2020-01-22T21:54:23Z</dc:date>
    <item>
      <title>Embedding Service principle AppOwnsData 401 ServicePrincipalIsNotAllowedByTenantAdminSwitch</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/699010#M19490</link>
      <description>&lt;P&gt;My set-up before starting work with Power BI Embedded was an Azure AD with a group that had a Workspace in the Power BI Service (app.powerbi.com) containing reports.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be able to embedd reports&amp;nbsp;I followed the steps here:&amp;nbsp;&lt;A href="https://app.powerbi.com/embedsetup/appownsdata" target="_blank" rel="noopener"&gt;https://app.powerbi.com/embedsetup/appownsdata&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've configured it to use Service Principal but when i try to read the report I get a 401 Unathourized back. In fiddler i see X-PowerBI-Error-Info: ServicePrincipalIsNotAllowedByTenantAdminSwitch but I can't find anything on google that helps me. I have allowed Service Principals to use API:s in the admin settings in Power BI Service. Anyone else experiencing this? I must've missed something basic since I can't find anyone with this issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I follow the steps here&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embed-service-principal" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embed-service-principal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;on step 2 I tried creating a new AzureADGroup but when that didn't work i found that&amp;nbsp;&lt;SPAN&gt;add a group user (Service principal) to the power bi workspace was the fix. Why this, what did I do wrong?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/groups/addgroupuser" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/groups/addgroupuser&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 05:06:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/699010#M19490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-24T05:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding Service principle AppOwnsData 401 ServicePrincipalIsNotAllowedByTenantAdminSwitch</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/712098#M19643</link>
      <description>&lt;P&gt;You need to add your service principal in step 5&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 22:10:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/712098#M19643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-11T22:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding Service principle AppOwnsData 401 ServicePrincipalIsNotAllowedByTenantAdminSwitch</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/713619#M19656</link>
      <description>&lt;P&gt;I had done that, didn't make a difference. But I left that behind now and stuck with the powershell way of doing this which worked&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 06:02:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/713619#M19656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-13T06:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding Service principle AppOwnsData 401 ServicePrincipalIsNotAllowedByTenantAdminSwitch</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/872712#M21701</link>
      <description>&lt;P&gt;Could you please share how did you fix the issue, i'm getting the same response back from the power bi apis "&lt;SPAN&gt;ServicePrincipalIsNotAllowedByTenantAdminSwitch"&lt;BR /&gt;I added the service principal as an admin to my workspace but it's still not working&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 01:32:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/872712#M21701</guid>
      <dc:creator>rafapaz05</dc:creator>
      <dc:date>2019-12-12T01:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding Service principle AppOwnsData 401 ServicePrincipalIsNotAllowedByTenantAdminSwitch</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/895849#M21964</link>
      <description>&lt;P&gt;I'm sorry but I don't remember, I think it was granting the User (service principal) permissions to the workspace&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/groups/addgroupuser" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/groups/addgroupuser&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 06:14:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/895849#M21964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-10T06:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding Service principle AppOwnsData 401 ServicePrincipalIsNotAllowedByTenantAdminSwitch</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/908618#M22080</link>
      <description>&lt;P&gt;I was able to resolve it by going to &lt;STRONG&gt;Power BI Admin&lt;/STRONG&gt; portal (accessible from settings cog on &lt;A href="https://app.powerbi.com/home" target="_blank"&gt;https://app.powerbi.com/home&lt;/A&gt;), selecting &lt;STRONG&gt;Tenant Settings&lt;/STRONG&gt;, and then toggling the &lt;STRONG&gt;Allow service principals to access Power BI APIs&lt;/STRONG&gt; setting to enabled&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the&amp;nbsp;&lt;STRONG&gt;Getting started with service principal&lt;/STRONG&gt; section in this article&amp;nbsp;&lt;A href="https://powerbi.microsoft.com/en-us/blog/use-power-bi-api-with-service-principal-preview/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/blog/use-power-bi-api-with-service-principal-preview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2020 21:54:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/908618#M22080</guid>
      <dc:creator>vince-koch</dc:creator>
      <dc:date>2020-01-22T21:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding Service principle AppOwnsData 401 ServicePrincipalIsNotAllowedByTenantAdminSwitch</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/4592521#M59707</link>
      <description>&lt;P&gt;in my case - I lost 5 hours to cope with that.... I made some stupid but obvious change...&lt;BR /&gt;&lt;BR /&gt;turn off service principal api in power bi admin, then turn on again.&lt;BR /&gt;&lt;BR /&gt;THANKS MICROSOFT FOR SUPER CLEAR AND INTUITIVE SYSTEM....&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 08:44:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Embedding-Service-principle-AppOwnsData-401/m-p/4592521#M59707</guid>
      <dc:creator>ShpxLbh</dc:creator>
      <dc:date>2025-03-03T08:44:33Z</dc:date>
    </item>
  </channel>
</rss>

