Unable to perform patch operation on users api which is in preview
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2023 03:57 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2023 06:56 PM
You should be assigning users roles or permissions for each workspace from the account level (where you assign metastores to workspaces).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 12:26 PM
@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