<?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: Missing configured &amp;quot;sql&amp;quot; scope in Databricks Apps User Token in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/missing-configured-quot-sql-quot-scope-in-databricks-apps-user/m-p/129296#M3943</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/177428"&gt;@spoltier&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;To update your token with the new scope, first add "sql" to your app, then stop and restart the app so that, when you next access it, Databricks will prompt you to the consent screen and grant the updated scopes. If you don't see the consent prompt after relaunching, try logging out and clearing your browser session.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Aug 2025 13:57:24 GMT</pubDate>
    <dc:creator>Advika</dc:creator>
    <dc:date>2025-08-22T13:57:24Z</dc:date>
    <item>
      <title>Missing configured "sql" scope in Databricks Apps User Token</title>
      <link>https://community.databricks.com/t5/administration-architecture/missing-configured-quot-sql-quot-scope-in-databricks-apps-user/m-p/129093#M3927</link>
      <description>&lt;P&gt;I have&amp;nbsp;&lt;A title="Azure databricks user authorization" href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/databricks-apps/auth#user-authorization" target="_blank" rel="noopener"&gt;User authorization&lt;/A&gt;&amp;nbsp;for apps enabled in my workspace.&lt;/P&gt;&lt;P&gt;I have added the sql scope to my app. However, when making sql queries to my app, authorization errors ensue:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;Error during request to server: : Provided OAuth token does not have required scopes.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have managed to inspect the JWT that is provided via&amp;nbsp;&lt;SPAN class=""&gt;x-forwarded-access-token&lt;/SPAN&gt;&amp;nbsp;and it indeed is missing the "sql" scope.&lt;/P&gt;&lt;P&gt;One thing that could be causing issues is that I'm not sure that I &lt;A title="azure databricks apps auth: scope based" href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/databricks-apps/auth#scope-based" target="_blank" rel="noopener"&gt;approved&lt;/A&gt; the sql scope at the time I first accessed the app. It would be good to be able to reapprove / disapprove the app as a user, both for troubleshooting and security reasons.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 09:18:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/missing-configured-quot-sql-quot-scope-in-databricks-apps-user/m-p/129093#M3927</guid>
      <dc:creator>spoltier</dc:creator>
      <dc:date>2025-08-21T09:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Missing configured "sql" scope in Databricks Apps User Token</title>
      <link>https://community.databricks.com/t5/administration-architecture/missing-configured-quot-sql-quot-scope-in-databricks-apps-user/m-p/129129#M3935</link>
      <description>&lt;P&gt;Replying to add that the scope field has value&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"offline_access email iam.current-user:read openid iam.access-control:read profile"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Aug 2025 11:18:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/missing-configured-quot-sql-quot-scope-in-databricks-apps-user/m-p/129129#M3935</guid>
      <dc:creator>spoltier</dc:creator>
      <dc:date>2025-08-21T11:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Missing configured "sql" scope in Databricks Apps User Token</title>
      <link>https://community.databricks.com/t5/administration-architecture/missing-configured-quot-sql-quot-scope-in-databricks-apps-user/m-p/129296#M3943</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/177428"&gt;@spoltier&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;To update your token with the new scope, first add "sql" to your app, then stop and restart the app so that, when you next access it, Databricks will prompt you to the consent screen and grant the updated scopes. If you don't see the consent prompt after relaunching, try logging out and clearing your browser session.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 13:57:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/missing-configured-quot-sql-quot-scope-in-databricks-apps-user/m-p/129296#M3943</guid>
      <dc:creator>Advika</dc:creator>
      <dc:date>2025-08-22T13:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Missing configured "sql" scope in Databricks Apps User Token</title>
      <link>https://community.databricks.com/t5/administration-architecture/missing-configured-quot-sql-quot-scope-in-databricks-apps-user/m-p/129312#M3944</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/152834"&gt;@Advika&lt;/a&gt;&amp;nbsp;thanks. It looks like this was only a temporary issue; I had already restarted the app, but today it is working. I will mark your answer as accepted. The problem may have been due to recreating the app (using bundles), which reset the user scopes.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 14:50:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/missing-configured-quot-sql-quot-scope-in-databricks-apps-user/m-p/129312#M3944</guid>
      <dc:creator>spoltier</dc:creator>
      <dc:date>2025-08-22T14:50:51Z</dc:date>
    </item>
  </channel>
</rss>

