Databricks Rest API to Update permissions
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2024 09:16 AM - edited 11-10-2024 09:19 AM
I am trying to update permissions of an object using Rest API.
Endpoint I am using is "/api/2.1/unity-catalog/permissions/catalog/catalog_name"
Payload is :
payload = {
"changes": [
{
"principal": <group_name>,
"add": [
"ALL PRIVILEGES"
]
}
]
}
But I am receiving an error:
{ "detail": { "error_code": "INVALID_PARAMETER_VALUE", "message": "Privilege is not applicable to this entity [catalog_name:CATALOG/CATALOG_STANDARD]. If this seems unexpected, please check the privilege version of the metastore in use [1.0].", "details": [ { "@type": "type.googleapis.com/google.rpc.RequestInfo", "request_id": <req_id>, "serving_data": "" } ] } }
I am receiving this error for all securable types and privileges, for both add and remove.
Labels:
- Labels:
-
Unity Catalog