<?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: Microsoft Fabric GraphQL API returns 403 Forbidden - ServicePrincipalIsNotAllowedByTenantAdminSw in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5280819#M17172</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1633533"&gt;@YashMoroliya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to fabric community.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/695681"&gt;@Murtaza_Ghafoor&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/920086"&gt;@Ugk161610&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1340679"&gt;@tayloramy&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1304242"&gt;@Parchitect&lt;/a&gt;&amp;nbsp;for the prompt response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please confirm whether the provided solution helped in resolving the issue. If you have any further questions please feel free to reach out to us.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2026 06:18:38 GMT</pubDate>
    <dc:creator>v-sathmakuri</dc:creator>
    <dc:date>2026-07-09T06:18:38Z</dc:date>
    <item>
      <title>Microsoft Fabric GraphQL API returns 403 Forbidden - ServicePrincipalIsNotAllowedByTenantAdminSwitch</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5273582#M17105</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have verified the integration from our side.&lt;/P&gt;&lt;P&gt;Access token is generated successfully using the provided Client ID, Client Secret, and Tenant ID.&lt;BR /&gt;The token audience is &lt;A href="https://api.fabric.microsoft.com" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com&lt;/A&gt;.&lt;BR /&gt;The GraphQL request is sent with a valid Bearer token.&lt;/P&gt;&lt;P&gt;However, the API returns 403 Forbidden with the response header:&lt;/P&gt;&lt;P&gt;X-PowerBI-Error-Info: ServicePrincipalIsNotAllowedByTenantAdminSwitch&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2026 10:37:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5273582#M17105</guid>
      <dc:creator>YashMoroliya</dc:creator>
      <dc:date>2026-07-06T10:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Fabric GraphQL API returns 403 Forbidden - ServicePrincipalIsNotAllowedByTenantAdminSw</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5273598#M17106</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1633533"&gt;@YashMoroliya&lt;/a&gt;,&lt;BR /&gt;&lt;SPAN&gt;The response header names the exact cause: the tenant switch that allows service principals to call Fabric APIs is either off or doesn't cover your app. Your token being valid is expected — Entra issues it regardless of Fabric settings; the 403 comes from Fabric's own authorization layer checking that switch.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The fix needs a Fabric administrator: &lt;STRONG&gt;Admin portal → Tenant settings → Developer settings → enable Service principals can use Fabric APIs → Apply.&lt;/STRONG&gt; If your admin says it's already enabled, ask whether it's scoped to specific security groups rather than the whole organization — in that case the app registration must be a member of one of those groups. Give it a few minutes to propagate after changes.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Once you're past the switch, the service principal needs two more things, or you'll trade this 403 for another one: &lt;STRONG&gt;Execute permission on the GraphQL item&lt;/STRONG&gt; (Manage permissions on the API item → Add user → your app → Run Queries and Mutations) plus read access to the underlying Lakehouse. The simpler route for dev/test is adding the app registration as a workspace &lt;STRONG&gt;Contributor,&lt;/STRONG&gt; which covers both the API and the data source in one step.&lt;/DIV&gt;&lt;DIV&gt;One thing not to do: don't go adding API permissions or scopes on the app registration in Entra — service principals don't use delegated permissions for this scenario, and all authorization is managed inside Fabric. Your scope (audience&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://api.fabric.microsoft.com/" target="_blank" rel="noopener"&gt;https://api.fabric.microsoft.com&lt;/A&gt;) is already correct, so no change needed on the token side.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Full walkthrough:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/api-graphql-service-principal" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/api-graphql-service-principal&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;STRONG&gt;AI disclosure:&lt;/STRONG&gt; Microsoft Copilot was used to help with wording/structure. The technical answer was manually reviewed and validated against the Microsoft Learn reference above(The full walkthrough link)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Jul 2026 20:29:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5273598#M17106</guid>
      <dc:creator>Parchitect</dc:creator>
      <dc:date>2026-07-06T20:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Fabric GraphQL API returns 403 Forbidden - ServicePrincipalIsNotAllowedByTenantAdminSw</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5273951#M17116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1633533"&gt;@YashMoroliya&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a configuration that your Fabric Admin needs to change. In the admin portal, the tenant setting for "service principals can use admin APIs" needs to be turned on.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2026 12:55:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5273951#M17116</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2026-07-06T12:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Fabric GraphQL API returns 403 Forbidden - ServicePrincipalIsNotAllowedByTenantAdminSw</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5273973#M17118</link>
      <description>&lt;P class=""&gt;Hi,&lt;/P&gt;
&lt;P class=""&gt;Thanks for the details — good news is this isn't an issue with your setup. The fact that token generation worked fine with your Client ID/Secret/Tenant ID means your app registration is correct.&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;The &lt;CODE class=""&gt;ServicePrincipalIsNotAllowedByTenantAdminSwitch error just means your tenant admin hasn't flipped the switch yet that lets service principals call the Fabric APIs at all. It's a tenant-wide setting, not something on your end.&lt;/CODE&gt;&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Here's what needs to happen:&lt;/P&gt;
&lt;P class=""&gt;Someone with tenant admin rights needs to go to the Power BI Admin Portal → Tenant settings → Developer settings, and turn on "Service principals can use Fabric APIs" (some tenants still show it as the older "Power BI APIs" wording). They can either enable it for the whole org, or restrict it to a specific security group — in which case your service principal needs to be added to that group.&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;A couple of things to keep in mind once that's turned on:&lt;/P&gt;
&lt;UL class=""&gt;
&lt;LI class=""&gt;It can take up to 15 mins (sometimes a bit longer) to actually kick in, so don't panic if it doesn't work instantly.&lt;/LI&gt;
&lt;LI class=""&gt;Even after that setting is on, your service principal still needs to be added as a member/contributor on the actual workspace you're trying to hit — the tenant switch just opens the door, workspace permissions control what's actually inside.&lt;/LI&gt;
&lt;LI class=""&gt;If you're calling the Fabric GraphQL API specifically (not the older Power BI REST API), double check there isn't a separate Fabric-specific toggle for it, since some tenants split these out.
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Hope this helps! A couple of quick asks if it does:&lt;/P&gt;
&lt;UL class=""&gt;
&lt;LI class=""&gt;Drop a Kudos if this pointed you in the right direction&lt;/LI&gt;
&lt;LI class=""&gt;If it solves things, please mark it as the accepted solution — helps others hitting the same error find it faster&lt;/LI&gt;
&lt;LI class=""&gt;Also, come hang out on the Fabric Discord if you're not already there
&lt;P class=""&gt;ugk161610,&lt;BR /&gt;Proud Fabric Super User &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class=""&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2026 13:03:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5273973#M17118</guid>
      <dc:creator>Ugk161610</dc:creator>
      <dc:date>2026-07-06T13:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Fabric GraphQL API returns 403 Forbidden - ServicePrincipalIsNotAllowedByTenantAdminSw</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5275283#M17131</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1633533"&gt;@YashMoroliya&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Root Cause:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The Fabric/Power BI Tenant Admin has not enabled service principals for Fabric APIs, or most probably your service principal is not included in the allowed security group.&lt;BR /&gt;First of all you need to check these settings, first one from fabric admin settings, second one check the permission from service principal security settings.&lt;BR /&gt;&lt;STRONG&gt;Why this is happening&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;When a service principal calls the Fabric GraphQL endpoint, Fabric checks the tenant settings before checking permissions. If the tenant switch is disabled, it immediately returns this error:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;If this helps,&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;✓ Mark as Kudos | Help Others&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#993300"&gt;Proud to be a Super User&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2026 05:05:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5275283#M17131</guid>
      <dc:creator>Murtaza_Ghafoor</dc:creator>
      <dc:date>2026-07-07T05:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Microsoft Fabric GraphQL API returns 403 Forbidden - ServicePrincipalIsNotAllowedByTenantAdminSw</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5280819#M17172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1633533"&gt;@YashMoroliya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to fabric community.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/695681"&gt;@Murtaza_Ghafoor&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/920086"&gt;@Ugk161610&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1340679"&gt;@tayloramy&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1304242"&gt;@Parchitect&lt;/a&gt;&amp;nbsp;for the prompt response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please confirm whether the provided solution helped in resolving the issue. If you have any further questions please feel free to reach out to us.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2026 06:18:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Microsoft-Fabric-GraphQL-API-returns-403-Forbidden/m-p/5280819#M17172</guid>
      <dc:creator>v-sathmakuri</dc:creator>
      <dc:date>2026-07-09T06:18:38Z</dc:date>
    </item>
  </channel>
</rss>

