<?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: How to delete object permissions using REST API in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/how-to-delete-object-permissions-using-rest-api/m-p/93212#M8536</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/125487"&gt;@reddybhargava&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You're correct, there is no direct delete method in REST API. To delete/revoke permission you need to use set method.&lt;/P&gt;&lt;P&gt;Any previous permissions are overwritten by the new values, and any permissions omitted are removed. It's little inconvenient, but it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2024 02:36:28 GMT</pubDate>
    <dc:creator>szymon_dybczak</dc:creator>
    <dc:date>2024-10-09T02:36:28Z</dc:date>
    <item>
      <title>How to delete object permissions using REST API</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-delete-object-permissions-using-rest-api/m-p/93202#M8535</link>
      <description>&lt;P&gt;We have REST API methods to set,update,Get object permissions documented here&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/permissions" target="_blank"&gt;https://docs.databricks.com/api/workspace/permissions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there a way to revoke the permissions which are granted through REST API&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 00:31:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-delete-object-permissions-using-rest-api/m-p/93202#M8535</guid>
      <dc:creator>reddybhargava</dc:creator>
      <dc:date>2024-10-09T00:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete object permissions using REST API</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-delete-object-permissions-using-rest-api/m-p/93212#M8536</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/125487"&gt;@reddybhargava&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You're correct, there is no direct delete method in REST API. To delete/revoke permission you need to use set method.&lt;/P&gt;&lt;P&gt;Any previous permissions are overwritten by the new values, and any permissions omitted are removed. It's little inconvenient, but it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 02:36:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-delete-object-permissions-using-rest-api/m-p/93212#M8536</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-10-09T02:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete object permissions using REST API</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-delete-object-permissions-using-rest-api/m-p/93325#M8537</link>
      <description>&lt;P&gt;Thank you for your response!&lt;/P&gt;&lt;P&gt;We have a situation where we assigned CAN_BIND permissions to a group for a service principal using the following:&lt;/P&gt;&lt;P&gt;$ vim grant-service-principal.json&lt;BR /&gt;{&lt;BR /&gt;"access_control_list": [&lt;BR /&gt;{&lt;BR /&gt;"user_name": "{username}",&lt;BR /&gt;"permission_level": "CAN_BIND"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;$ curl -X PATCH {DATABRICKS_HOST}/api/2.0/permissions/service-principals/{SP_ID}&lt;BR /&gt;header "Content-type: application/json" header "Authorization: Bearer&lt;BR /&gt;${DATABRICKS_TOKEN}" data &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/29981"&gt;@Grant&lt;/a&gt;-service-principal.json&lt;/P&gt;&lt;P&gt;However, the issue with using the SET method to overwrite these permissions is that, as far as we have tried, we can only assign CAN_BIND to a service principal and cannot assign other permissions like CAN_VIEW, etc.&lt;/P&gt;&lt;P&gt;Do you have any suggestions on how we might address this?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 16:08:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-delete-object-permissions-using-rest-api/m-p/93325#M8537</guid>
      <dc:creator>reddybhargava</dc:creator>
      <dc:date>2024-10-09T16:08:26Z</dc:date>
    </item>
  </channel>
</rss>

