- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 07:51 AM
Is there api call to set "Table access control" workspace config ?
- Labels:
-
Table access control
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 10:23 PM
Hi Kaniz,
Unfortunately the databricks is deployed and configured via DevOps (BICEP & Powershell scripts), so the UI is not an option. That's something the Databricks team should address
We would like to use table acl to be able to share different views to different teams.
They will be using an SQL Warehouse and PowerBI to connect to the data.
Unfortunately I can't find an option where we can change the spark config for an SQL Warehouse.
We are considering moving to the Unity Catalog where table ACL on the workspace isn't an issue.
But having some issues with the Infra team to get them convinced 😉
Regards,
Sven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2022 04:06 PM
@Govind Narain can you try below api
curl --location --request PATCH 'https://test.cloud.databricks.com/api/2.0/workspace-conf' \
--header 'Authorization: Bearer REPLACE_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"enableTableAccessControl": "true"
}'
for reference go through below one of the discussions posted previously Can Terraform be used to set configurations in Admin / workspace settings? (databricks.com)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2022 01:36 PM
Hi Karthik,
It did not work. The error I am getting is that it is an invalid key.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2023 03:31 AM
Hi @karthik p I am facing the same issue as @Govind Narain. Do you have any reference to the different keys that are supported by this API? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2023 09:25 AM
@Diogo Pinto did you cheked workspace id that u added in patch url is correct and also any spaces to generated token @Govind Narain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 12:59 AM
Faciing the same issue, tried to fetch the current value via /api/2.0/workspace-conf?keys=enableTableAccessControl
Unfortunately this is returning a 400
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 05:14 AM
Hi Kaniz,
I tried this on our Databricks hosted on Azure
Result
{
"error_code": "BAD_REQUEST",
"message": "Invalid keys: [\"workspaceAccessControlEnabled\"]"
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 10:23 PM
Hi Kaniz,
Unfortunately the databricks is deployed and configured via DevOps (BICEP & Powershell scripts), so the UI is not an option. That's something the Databricks team should address
We would like to use table acl to be able to share different views to different teams.
They will be using an SQL Warehouse and PowerBI to connect to the data.
Unfortunately I can't find an option where we can change the spark config for an SQL Warehouse.
We are considering moving to the Unity Catalog where table ACL on the workspace isn't an issue.
But having some issues with the Infra team to get them convinced 😉
Regards,
Sven

