cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Change users status in account console

alesventus
New Contributor III

One of our users has status = Inactive in Admin setting. I tried to set it to active using rest api and the documentation but seems like api is not changing status.

I tested api and I can list users so api setting are ok.

api request:

 

import requests
import json

run_update = {
  "schemas": [ "urn:ietf:params:scim:api:messages:2.0:PatchOp" ],
  "Operations": [
    {
      "op": "replace",
      "path": "active",
      "value": [
        {
          "value": "true"
        }
      ]
    }
  ]
}
headers = {"Authorization": "Bearer token"}
create_response = requests.patch(host + '/api/2.0/preview/scim/v2/Users/userid', data=json.dumps(run_update), headers=headers)

 

 

I get response 200.

Status of the user has not changed. Any advice how to set user back to active in account console?

Thanks

1 REPLY 1

arpit
Valued Contributor
Valued Contributor

@alesventus Can you test the same using CLI or may be try to make the status as inactive for a dummy user? Just want to validate if the API is actually working for you or not.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!