Only the GUI seems to allow SELECT and USE_SCHEMA 'account users' permissions on catalogs. Terraform gives me an error. Here is my Terraform config:
resource "databricks_grants" "staging" {
provider = databricks.workspace
catalog = databricks_catalog.staging.name
grant {
principal = "account users"
privileges = ["SELECT", "USE_CATALOG", "USE_SCHEMA"]
}
}
โ Error: USE_SCHEMA is not allowed on catalog
โ
โ with module.unity_catalog.databricks_grants.staging,
โ on ../../modules/production/unity_catalog/main.tf line 158, in resource "databricks_grants" "staging":
โ 158: resource "databricks_grants" "staging" {
โ
โต
The Terraform man page for databricks_grants says the above should have worked (https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/grants#catalog-grants)