Skip to content

Commit 43695c7

Browse files
authored
Added missing permissions to databricks_grants resource (#2260)
1 parent 66a3bad commit 43695c7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

catalog/resource_grants.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ var mapping = securableMapping{
240240
"CREATE_SHARE": true,
241241
"CREATE_RECIPIENT": true,
242242
"CREATE_PROVIDER": true,
243+
"USE_PROVIDER": true,
244+
"USE_SHARE": true,
245+
"USE_RECIPIENT": true,
246+
"SET_SHARE_PERMISSION": true,
243247
},
244248
"function": {
245249
"ALL_PRIVILEGES": true,

docs/resources/grants.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Unlike the [SQL specification](https://docs.databricks.com/sql/language-manual/s
3737

3838
## Metastore grants
3939

40-
You can grant `CREATE_CATALOG`, `CREATE_EXTERNAL_LOCATION`, `CREATE_SHARE`, `CREATE_RECIPIENT` and `CREATE_PROVIDER` privileges to [databricks_metastore](metastore.md) id specified in `metastore` attribute.
40+
You can grant `CREATE_CATALOG`, `CREATE_EXTERNAL_LOCATION`, `CREATE_SHARE`, `CREATE_RECIPIENT` and `CREATE_PROVIDER`, `USE_PROVIDER`, `USE_SHARE`,`USE_RECIPIENT`, `SET_SHARE_PERMISSION` privileges to [databricks_metastore](metastore.md) id specified in `metastore` attribute.
4141

4242
```hcl
4343
resource "databricks_grants" "sandbox" {

0 commit comments

Comments
 (0)