<?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 API Unauthorized: ServicePrincipalIsNotAllowedByTenantAdminSwitch despite switched on. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-API-Unauthorized/m-p/1536739#M26705</link>
    <description>&lt;P&gt;Following the&amp;nbsp;&lt;A href="https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/.NET%20Framework/Embed%20for%20your%20customers" target="_self"&gt;PowerBI-Developer-Samples -&amp;gt; .NET Framework -&amp;gt; Embed for your customers&lt;/A&gt;&amp;nbsp;sample, I am using Power BI API and the response is a 401 error with a '&lt;STRONG&gt;X-PowerBI-Error-Info&lt;/STRONG&gt;' header with value '&lt;STRONG&gt;ServicePrincipalIsNotAllowedByTenantAdminSwitch&lt;/STRONG&gt;'. I have followed all steps in&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" target="_self"&gt;Embed Power BI content with service principal and an application secret&lt;/A&gt;&amp;nbsp;document, in particular step 3 handles this specific scenario of allowing service principals by tenant. To clarify, I am trying to use the Power BI API using service principals.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Dec 2020 15:52:42 GMT</pubDate>
    <dc:creator>lokane</dc:creator>
    <dc:date>2020-12-07T15:52:42Z</dc:date>
    <item>
      <title>Power BI API Unauthorized: ServicePrincipalIsNotAllowedByTenantAdminSwitch despite switched on.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-API-Unauthorized/m-p/1536739#M26705</link>
      <description>&lt;P&gt;Following the&amp;nbsp;&lt;A href="https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/.NET%20Framework/Embed%20for%20your%20customers" target="_self"&gt;PowerBI-Developer-Samples -&amp;gt; .NET Framework -&amp;gt; Embed for your customers&lt;/A&gt;&amp;nbsp;sample, I am using Power BI API and the response is a 401 error with a '&lt;STRONG&gt;X-PowerBI-Error-Info&lt;/STRONG&gt;' header with value '&lt;STRONG&gt;ServicePrincipalIsNotAllowedByTenantAdminSwitch&lt;/STRONG&gt;'. I have followed all steps in&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal" target="_self"&gt;Embed Power BI content with service principal and an application secret&lt;/A&gt;&amp;nbsp;document, in particular step 3 handles this specific scenario of allowing service principals by tenant. To clarify, I am trying to use the Power BI API using service principals.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 15:52:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-API-Unauthorized/m-p/1536739#M26705</guid>
      <dc:creator>lokane</dc:creator>
      <dc:date>2020-12-07T15:52:42Z</dc:date>
    </item>
  </channel>
</rss>

