<?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 do I simply disable someone's user account in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98824#M2297</link>
    <description>&lt;P&gt;Thanks! I'll try this out and report back!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 15:55:44 GMT</pubDate>
    <dc:creator>Aaron_Wong</dc:creator>
    <dc:date>2024-11-14T15:55:44Z</dc:date>
    <item>
      <title>How do I simply disable someone's user account</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98373#M2264</link>
      <description>&lt;P&gt;I'm trying to do something seemingly very simple - disable someone's user account.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't even want to delete the user, just disable it for the time being.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I go about doing that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 20:42:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98373#M2264</guid>
      <dc:creator>Aaron_Wong</dc:creator>
      <dc:date>2024-11-11T20:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I simply disable someone's user account</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98406#M2265</link>
      <description>&lt;P&gt;Hello Aaron&lt;/P&gt;&lt;P&gt;You can disable the user account in the directory of your cloud provider. For example, if you are using Azure Databricks, then you will manage the users via Azure Entra. Then you can simply deactivate the user account in Entra, for example, by unchecking the “Account enabled” button.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StefanKoch_0-1731389954406.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12840i9D904CBADC0B80D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StefanKoch_0-1731389954406.png" alt="StefanKoch_0-1731389954406.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you want the user to remain active in the cloud after all and just not be allowed to access Databricks Workspace, you can remove them from the workspace.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StefanKoch_1-1731390236707.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12841i9BF1322EEE5D01CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StefanKoch_1-1731390236707.png" alt="StefanKoch_1-1731390236707.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The user is not deleted in Entra, but merely removed from the workspace. It can still be found in the account.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StefanKoch_2-1731390569544.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12842i73A4D71F23865563/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StefanKoch_2-1731390569544.png" alt="StefanKoch_2-1731390569544.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 05:49:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98406#M2265</guid>
      <dc:creator>Stefan-Koch</dc:creator>
      <dc:date>2024-11-12T05:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I simply disable someone's user account</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98689#M2279</link>
      <description>&lt;P&gt;Ah, thanks for the reply Stefan! I should have clarified that I'm using Databricks via the AWS Marketplace.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I'm encountering when I'm trying to remove someone, is that it will say "User assigned through a group cannot be deleted".&amp;nbsp; However, when I go and try to remove the person from the group, I encounter this error:&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;PERMISSION_DENIED: Requesting user does not have permission to edit system groups.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;However, I'm an admin on both the account and workspace.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Let me know! Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-11-13 at 10.17.31 AM.png" style="width: 714px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12872i454BECA27A4ABE7E/image-dimensions/714x216?v=v2" width="714" height="216" role="button" title="Screenshot 2024-11-13 at 10.17.31 AM.png" alt="Screenshot 2024-11-13 at 10.17.31 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-11-13 at 10.21.52 AM.png" style="width: 548px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12871i21C41C3FF46497BB/image-dimensions/548x407?v=v2" width="548" height="407" role="button" title="Screenshot 2024-11-13 at 10.21.52 AM.png" alt="Screenshot 2024-11-13 at 10.21.52 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 15:25:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98689#M2279</guid>
      <dc:creator>Aaron_Wong</dc:creator>
      <dc:date>2024-11-13T15:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I simply disable someone's user account</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98699#M2280</link>
      <description>&lt;P&gt;Aaron&lt;/P&gt;&lt;P&gt;Is the user in another group as well? You may first remove him from that group, if it is so?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 16:58:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98699#M2280</guid>
      <dc:creator>Stefan-Koch</dc:creator>
      <dc:date>2024-11-13T16:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I simply disable someone's user account</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98716#M2283</link>
      <description>&lt;P&gt;Looks like you have users added via the system group 'account users' to the workspace. This is a system group and cannot be edited. You may make the user inactive at the workspace level using `Users` &lt;A href="https://docs.databricks.com/api/workspace/users/patch" target="_self"&gt;Patch API&lt;/A&gt; as shown below. You may get the userId from the user details page URL&amp;nbsp; (for eg : 123 being the user Id from user details page :&amp;nbsp;&amp;nbsp;&lt;A href="https://cust-arjun-pl-test-wks.cloud.databricks.com/settings/workspace/identity-and-access/users/6358412710395014?o=2940928839424547" target="_blank" rel="noopener"&gt;https://abc.cloud.databricks.com/settings/workspace/identity-and-access/users/123?o=&lt;/A&gt;456)&lt;BR /&gt;```&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl  --request PATCH '{{workspaceUrl}}/api/2.0/preview/scim/v2/Users/&amp;lt;UserId&amp;gt;' \
--header 'Accept: application/scim+json' \
--header 'Content-Type: application/json' \
--header 'Authorization: &amp;lt;Token&amp;gt;' \
--data '{
  "schemas": [ "urn:ietf:params:scim:api:messages:2.0:PatchOp" ], 
  "Operations": [ { 
    "op": "replace", 
    "path": "active", 
    "value": [ { "value": "false" } ] 
  } ] 
}'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 20:45:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98716#M2283</guid>
      <dc:creator>arjun_kr</dc:creator>
      <dc:date>2024-11-13T20:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I simply disable someone's user account</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98824#M2297</link>
      <description>&lt;P&gt;Thanks! I'll try this out and report back!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 15:55:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98824#M2297</guid>
      <dc:creator>Aaron_Wong</dc:creator>
      <dc:date>2024-11-14T15:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I simply disable someone's user account</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98975#M2314</link>
      <description>&lt;P&gt;Hello! I tried this call. I hid the sensitive information with "HIDDEN" in the example:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl --request PATCH 'https://HIDDEN.cloud.databricks.com/api/2.0/preview/scim/v2/Users/HIDDEN' \
--header 'Accept: application/scim+json' \
--header 'Content-Type: application/json' \
--header 'Authorization: HIDDEN' \
--data '{
  "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], 
  "Operations": [{
    "op": "replace", 
    "path": "active", 
    "value": false 
  }] 
}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm getting this error for some reason:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;SyntaxError: &lt;/SPAN&gt;&lt;SPAN&gt;unterminated string literal (detected at line 5) (command-194238644311154-3846552969, line 5)&lt;BR /&gt;&lt;BR /&gt;Any help is much appreciated!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 16:49:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/98975#M2314</guid>
      <dc:creator>Aaron_Wong</dc:creator>
      <dc:date>2024-11-15T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I simply disable someone's user account</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/101145#M2464</link>
      <description>&lt;P&gt;It looks like you might have run it as non-shell command. I can see the same error with the curl command being executed as a python command. Can you try executing it as a shell command by using&amp;nbsp;&lt;CODE class="mv6bHd"&gt;%sh&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;magic command&lt;/SPAN&gt; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;%sh 
curl --request PATCH 'https://HIDDEN.cloud.databricks.com/api/2.0/preview/scim/v2/Users/HIDDEN' \
--header 'Accept: application/scim+json' \
--header 'Content-Type: application/json' \
--header 'Authorization: HIDDEN' \
--data '{
  "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], 
  "Operations": [{
    "op": "replace", 
    "path": "active", 
    "value": false 
  }] 
}'&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Dec 2024 22:46:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/101145#M2464</guid>
      <dc:creator>arjun_kr</dc:creator>
      <dc:date>2024-12-05T22:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I simply disable someone's user account</title>
      <link>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/112417#M3113</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="maaz1_1-1741815181365.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/15370i930C6557DC942E80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="maaz1_1-1741815181365.png" alt="maaz1_1-1741815181365.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In Databricks, go to the &lt;STRONG&gt;Admin Console&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Navigate to the &lt;STRONG&gt;Service Principals&lt;/STRONG&gt; section.&lt;/LI&gt;&lt;LI&gt;Create a &lt;STRONG&gt;Service Role&lt;/STRONG&gt; (make sure it has necessary permissions (Admin Access).&lt;/LI&gt;&lt;LI&gt;Generate OAuth Token&lt;/LI&gt;&lt;LI&gt;Follow the instructions in the Databricks documentation to generate api access token&amp;nbsp;for the service role: &lt;A href="https://docs.databricks.com/aws/en/dev-tools/auth/oauth-m2m#oauth-m2m-manual" target="_new" rel="noopener"&gt;Follow instuction to generate the token OAuth M2M Manual Setup&lt;/A&gt;.&lt;/LI&gt;&lt;LI&gt;After completing the setup, you'll have a &lt;STRONG&gt;Bearer Token&lt;/STRONG&gt; for the service role.&lt;/LI&gt;&lt;LI&gt;Once you have the &lt;STRONG&gt;Bearer Token&lt;/STRONG&gt;, hit the &lt;SPAN&gt;curl --location --request DELETE &lt;SPAN class=""&gt;'&lt;A href="https://accounts.cloud.databricks.com/api/2.0/accounts/YOUR_ACCOUNT_ID/scim/v2/Users/YOUR_USER_ID/" target="_blank" rel="noopener"&gt;https://accounts.cloud.databricks.com/api/2.0/accounts/YOUR_ACCOUNT_ID/scim/v2/Users/YOUR_USER_ID/&lt;/A&gt;'&lt;/SPAN&gt; \ --header &lt;SPAN class=""&gt;'Authorization: Bearer YOUR_BEARER_TOKEN'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 21:34:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/how-do-i-simply-disable-someone-s-user-account/m-p/112417#M3113</guid>
      <dc:creator>maaz1</dc:creator>
      <dc:date>2025-03-12T21:34:30Z</dc:date>
    </item>
  </channel>
</rss>

