Databricks Rest API to Update permissions
- 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 :
- Labels:
-
Unity Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 09:54 AM
Hi @mayank_gupta,
The error you are encountering, "INVALID_PARAMETER_VALUE," indicates that the privilege "ALL PRIVILEGES" is not applicable to the entity you are trying to modify. This error message suggests that the privilege version of the metastore in use is 1.0, which might not support the "ALL PRIVILEGES" setting for the specified catalog.
Instead of using "ALL PRIVILEGES," try specifying individual privileges that are supported for the catalog entity
payload = {
"changes": [
{
"principal": "<group_name>",
"add": [
"SELECT",
"MODIFY",
"CREATE"
]
}
]
}

