<?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: Databricks grant update calatog catlog_name --json @privileges.json not updating privileges in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/databricks-grant-update-calatog-catlog-name-json-privileges-json/m-p/72089#M8661</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102905"&gt;@Prasad_Koneru&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;If the command is not updating the privileges as expected, there could be a few reasons for this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Firstly, ensure that the JSON file is correctly formatted and contains the correct privilege assignments. The &lt;CODE&gt;privileges.json&lt;/CODE&gt; file should look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="_1t7bu9hb markdown-code-json hljs language-json" data-highlighted="yes"&gt;&lt;SPAN class="hljs-punctuation"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="hljs-attr"&gt;"privilege_assignments"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-punctuation"&gt;[&lt;/SPAN&gt;
    &lt;SPAN class="hljs-punctuation"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;"principal"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"principal_name"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;,&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;"privileges"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-punctuation"&gt;[&lt;/SPAN&gt;
        &lt;SPAN class="hljs-string"&gt;"USE_CATALOG"&lt;/SPAN&gt;
      &lt;SPAN class="hljs-punctuation"&gt;]&lt;/SPAN&gt;
    &lt;SPAN class="hljs-punctuation"&gt;}&lt;/SPAN&gt;
  &lt;SPAN class="hljs-punctuation"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="hljs-punctuation"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;
&lt;DIV class=" iwpqfy0"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;Replace &lt;CODE&gt;"principal_name"&lt;/CODE&gt; with the actual principal (user or group) to which you want to grant the privilege.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;Secondly, make sure that you have the necessary permissions to update the privileges. If you don't have the required permissions, the command might not execute as expected.&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;Lastly, there could be an issue with the Databricks CLI itself. Ensure that you're using the latest version of the CLI and that it's correctly configured.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2024 19:38:14 GMT</pubDate>
    <dc:creator>Ravivarma</dc:creator>
    <dc:date>2024-06-07T19:38:14Z</dc:date>
    <item>
      <title>Databricks grant update calatog catlog_name --json @privileges.json not updating privileges</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-grant-update-calatog-catlog-name-json-privileges-json/m-p/72070#M8660</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to update the catalog permission privileges using databricks cli command Grant by appending json file but which is not updating the prIviliges, please help on grant update command usage.&lt;/P&gt;&lt;P&gt;Command using :&amp;nbsp;&amp;nbsp;databricks grants update catalog demo_cat --json @privileges.json&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is listing old prIviliges only, not updating i have updated from ALL_PRIVILEGES to USE_CATALOG&lt;/P&gt;&lt;P&gt;privileges.json content:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"privilege_assignments": [&lt;BR /&gt;{&lt;BR /&gt;"principal":"mailid",&lt;BR /&gt;"privileges": [&lt;BR /&gt;"USE_CATALOG"&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 15:30:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-grant-update-calatog-catlog-name-json-privileges-json/m-p/72070#M8660</guid>
      <dc:creator>Prasad_Koneru</dc:creator>
      <dc:date>2024-06-07T15:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks grant update calatog catlog_name --json @privileges.json not updating privileges</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-grant-update-calatog-catlog-name-json-privileges-json/m-p/72089#M8661</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102905"&gt;@Prasad_Koneru&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;If the command is not updating the privileges as expected, there could be a few reasons for this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Firstly, ensure that the JSON file is correctly formatted and contains the correct privilege assignments. The &lt;CODE&gt;privileges.json&lt;/CODE&gt; file should look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="_1t7bu9hb markdown-code-json hljs language-json" data-highlighted="yes"&gt;&lt;SPAN class="hljs-punctuation"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="hljs-attr"&gt;"privilege_assignments"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-punctuation"&gt;[&lt;/SPAN&gt;
    &lt;SPAN class="hljs-punctuation"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;"principal"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"principal_name"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;,&lt;/SPAN&gt;
      &lt;SPAN class="hljs-attr"&gt;"privileges"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-punctuation"&gt;[&lt;/SPAN&gt;
        &lt;SPAN class="hljs-string"&gt;"USE_CATALOG"&lt;/SPAN&gt;
      &lt;SPAN class="hljs-punctuation"&gt;]&lt;/SPAN&gt;
    &lt;SPAN class="hljs-punctuation"&gt;}&lt;/SPAN&gt;
  &lt;SPAN class="hljs-punctuation"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="hljs-punctuation"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;
&lt;DIV class=" iwpqfy0"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;Replace &lt;CODE&gt;"principal_name"&lt;/CODE&gt; with the actual principal (user or group) to which you want to grant the privilege.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;Secondly, make sure that you have the necessary permissions to update the privileges. If you don't have the required permissions, the command might not execute as expected.&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;Lastly, there could be an issue with the Databricks CLI itself. Ensure that you're using the latest version of the CLI and that it's correctly configured.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 19:38:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-grant-update-calatog-catlog-name-json-privileges-json/m-p/72089#M8661</guid>
      <dc:creator>Ravivarma</dc:creator>
      <dc:date>2024-06-07T19:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks grant update calatog catlog_name --json @privileges.json not updating privileges</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-grant-update-calatog-catlog-name-json-privileges-json/m-p/96818#M8662</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a similar issue when trying to update grants for my external location and trying to grant all privileges to "ml" service principal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running on Windows with version&amp;nbsp;Databricks CLI v0.223.1&lt;/P&gt;&lt;P&gt;This is the command I'm running in the CLI&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;databricks grants update external-location mdct_bronze --json @"filepath\privileges.json"&lt;/LI-CODE&gt;&lt;P&gt;This is what the privileges.json file looks like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "privilege_assignments": [
    {
      "principal": "ml",
      "privileges": [
        "ALL_PRIVILEGES"
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;The only output I'm receiving when running the command is&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{}&lt;/LI-CODE&gt;&lt;P&gt;However, when I update the privileges from the UI and run&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;databricks grants get external-location mdct_bronze --principal ml&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I receive the following output&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "privilege_assignments": [
    {
      "principal":"ml",
      "privileges": [
        "ALL_PRIVILEGES"
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Is there something wrong with the json configuration?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 14:49:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-grant-update-calatog-catlog-name-json-privileges-json/m-p/96818#M8662</guid>
      <dc:creator>sabrina_s</dc:creator>
      <dc:date>2024-10-30T14:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks grant update calatog catlog_name --json @privileges.json not updating privileges</title>
      <link>https://community.databricks.com/t5/get-started-discussions/databricks-grant-update-calatog-catlog-name-json-privileges-json/m-p/125264#M10372</link>
      <description>&lt;P&gt;If someone needs this in the future, like I did.&lt;BR /&gt;&lt;BR /&gt;The issue is with your JSON structure. The Databricks CLI uses "changes" with "add" instead of "privilege_assignments" with "privileges".&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "changes": [
    {
      "principal": "mailid",
      "add": [
        "USE_CATALOG"
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;To remove the old ALL_PRIVILEGES first:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "changes": [
    {
      "principal": "mailid",
      "remove": [
        "ALL_PRIVILEGES"
      ],
      "add": [
        "USE_CATALOG"
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;Then run:&lt;/P&gt;&lt;PRE&gt;databricks grants update catalog demo_cat --json @privileges.json&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Verify the changes:&lt;/P&gt;&lt;PRE&gt;databricks grants get catalog demo_cat&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The key difference is using "changes" array with "add"/"remove" actions instead of "privilege_assignments" with "privileges".&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 09:34:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/databricks-grant-update-calatog-catlog-name-json-privileges-json/m-p/125264#M10372</guid>
      <dc:creator>Pat</dc:creator>
      <dc:date>2025-07-15T09:34:30Z</dc:date>
    </item>
  </channel>
</rss>

