cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
missing-QuestionPost
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Unable to perform patch operation on users api which is in preview

karthik_p
Esteemed Contributor

Hi team,

we would like to lock users from accessing workspace, we are able to get properties of user like groups etc..but when we are doing patch operation it is throwing 500 error

while during post body in path we are providing entitlements

3 REPLIES 3

etsyal1e2r3
Honored Contributor

You should be assigning users roles or permissions for each workspace from the account level (where you assign metastores to workspaces).

Kaniz
Community Manager
Community Manager

Hi @karthik pโ€‹, We haven't heard from you since the last response from @Tyler Retzlaffโ€‹ โ€‹, and I was checking back to see if her suggestions helped you.

Or else, If you have any solution, please share it with the community, as it can be helpful to others. 

Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.

karthik_p
Esteemed Contributor

@Tyler Retzlaffโ€‹ our workspace is not UC enabled, only UC enabled need account level api. patch api we are using is from below link

https://docs.databricks.com/api/workspace/users/patch

{

"operations": [

{

"op": "update",

"path": "entitlements",

"value": "workspace-access"

}

]

}

looks it is not clear from example, what we need to pass in path (eg: i want to uncheck workspace-access which is under entitlements. as we have bulk users we are looking for good solution please @Kaniz Fatmaโ€‹