<?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 Limit the scope of workspace level access token to access only specific REST APIs of Databricks in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/limit-the-scope-of-workspace-level-access-token-to-access-only/m-p/62748#M2802</link>
    <description>&lt;P&gt;Hi Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to limit the scope of workspace level token to hit only certain REST APIs of Databricks.&lt;/P&gt;&lt;P&gt;In short, Once we generate a workspace level token following this doc. Link:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/dev-tools/auth/oauth-m2m.html#manually-generate-a-workspace-level-access-token" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/dev-tools/auth/oauth-m2m.html#manually-generate-a-workspace-level-access-token.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see we can generate token via:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl --request POST &lt;SPAN class=""&gt;\&lt;/SPAN&gt;
--url &amp;lt;token-endpoint-URL&amp;gt; &lt;SPAN class=""&gt;\&lt;/SPAN&gt;
--user &lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;$CLIENT_ID&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;$CLIENT_SECRET&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt; &lt;SPAN class=""&gt;\&lt;/SPAN&gt;
--data &lt;SPAN class=""&gt;'grant_type=client_credentials&amp;amp;scope=all-apis'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;But here, the&amp;nbsp;&lt;SPAN class=""&gt;scope=all-apis. Which gives access to all APIs. Can I limit the APIs which the entity can access using the token&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;as a part of ensuring better security?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 12:19:19 GMT</pubDate>
    <dc:creator>Surajv</dc:creator>
    <dc:date>2024-03-06T12:19:19Z</dc:date>
    <item>
      <title>Limit the scope of workspace level access token to access only specific REST APIs of Databricks</title>
      <link>https://community.databricks.com/t5/get-started-discussions/limit-the-scope-of-workspace-level-access-token-to-access-only/m-p/62748#M2802</link>
      <description>&lt;P&gt;Hi Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to limit the scope of workspace level token to hit only certain REST APIs of Databricks.&lt;/P&gt;&lt;P&gt;In short, Once we generate a workspace level token following this doc. Link:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/dev-tools/auth/oauth-m2m.html#manually-generate-a-workspace-level-access-token" target="_blank" rel="noopener"&gt;https://docs.databricks.com/en/dev-tools/auth/oauth-m2m.html#manually-generate-a-workspace-level-access-token.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see we can generate token via:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl --request POST &lt;SPAN class=""&gt;\&lt;/SPAN&gt;
--url &amp;lt;token-endpoint-URL&amp;gt; &lt;SPAN class=""&gt;\&lt;/SPAN&gt;
--user &lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;$CLIENT_ID&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;$CLIENT_SECRET&lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt; &lt;SPAN class=""&gt;\&lt;/SPAN&gt;
--data &lt;SPAN class=""&gt;'grant_type=client_credentials&amp;amp;scope=all-apis'&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;But here, the&amp;nbsp;&lt;SPAN class=""&gt;scope=all-apis. Which gives access to all APIs. Can I limit the APIs which the entity can access using the token&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;as a part of ensuring better security?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 12:19:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/limit-the-scope-of-workspace-level-access-token-to-access-only/m-p/62748#M2802</guid>
      <dc:creator>Surajv</dc:creator>
      <dc:date>2024-03-06T12:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the scope of workspace level access token to access only specific REST APIs of Databricks</title>
      <link>https://community.databricks.com/t5/get-started-discussions/limit-the-scope-of-workspace-level-access-token-to-access-only/m-p/63333#M2808</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;Replied to previous message as response to &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;'s answer&amp;gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 06:29:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/limit-the-scope-of-workspace-level-access-token-to-access-only/m-p/63333#M2808</guid>
      <dc:creator>Surajv</dc:creator>
      <dc:date>2024-03-12T06:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the scope of workspace level access token to access only specific REST APIs of Databricks</title>
      <link>https://community.databricks.com/t5/get-started-discussions/limit-the-scope-of-workspace-level-access-token-to-access-only/m-p/63334#M2809</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for response. Noted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 1 doubt:&amp;nbsp;Can I restrict the token access only to specific REST APIs? In other words, once I use the token and setup a bearer token based auth and try accessing different REST APIs provided by Databricks like consider below 3 APIs:&amp;nbsp;&lt;/P&gt;&lt;P&gt;i)&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN&gt;/api/2.1/unity-catalog/catalogs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ii)&amp;nbsp;&lt;/SPAN&gt;/api/2.0/preview/sql/queries&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;iii)&amp;nbsp;&lt;SPAN class=""&gt;/api/2.0/sql/warehouses&lt;/SPAN&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Is it possible to only access APIs defined in (i) and (ii) and not give API access permission to (iii)?&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 06:28:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/limit-the-scope-of-workspace-level-access-token-to-access-only/m-p/63334#M2809</guid>
      <dc:creator>Surajv</dc:creator>
      <dc:date>2024-03-12T06:28:29Z</dc:date>
    </item>
  </channel>
</rss>

