Grant permissions to groups on catalogs linked to the same metastore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2024 12:54 AM
- Azure_Databricks_1 > my_workspace_1
- Azure_Databricks_2 > my_workspace_2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2024 02:00 AM
You could bind the catalog to specific workspaces, making them accessbile only from workspaces they are bound to.
https://docs.databricks.com/en/catalogs/binding.html
In your example:
if `my_catalog_2` is bound to `my_workspace_2` a user in `my_workspace_1` will not be able to access or modify objects in `my_catalog_2` even if they have permissions to do so in Unity Catalog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2024 12:13 AM
Hello, thanks for your response.
Indeed, I had already considered that part. My problem is that I cannot grant privileges to `my_catalog_2` (which is associated with `my_workspace_2`) to a group at the workspace level.
In other words, I want all users in the "data_engineers" group of `my_workspace_2` to have `ALL_PRIVILEGES` on all schemas of `my_catalogo_2`.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2024 01:02 AM
Hi @jmsimonramos1,
- You create data_users_1 group.
- You grant data_users_1 the needed privileges to my_catalog_1:
GRANT ALL PRIVILEGES ON CATALOG my_catalog_1 to `data_access_1`;
- You create data_users_2 group.
- You grant data_users_2 the needed privileges to my_catalog_2:
GRANT ALL PRIVILEGES ON CATALOG my_catalog_2 to `data_access_2`;
- data_users_1 has now all privileges on my_catalog_1, whereas data_users_2 has now all privileges on my_catalog_2
- There is no need to limit catalog visibility on the workspace level if there is no requirement to do so.
- Check the docs on unity catalog privilege management