Skip to content

Commit

Permalink
add CAN_MONITOR permission to SQL warehouse
Browse files Browse the repository at this point in the history
  • Loading branch information
nkvuong committed Jun 18, 2024
1 parent 2a9379a commit e7d7e27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ resource "databricks_permissions" "token_usage" {

## SQL warehouse usage

[SQL warehouses](https://docs.databricks.com/sql/user/security/access-control/sql-endpoint-acl.html) have three possible permissions: `IS_OWNER`, `CAN_USE` and `CAN_MANAGE`:
[SQL warehouses](https://docs.databricks.com/sql/user/security/access-control/sql-endpoint-acl.html) have four possible permissions: `IS_OWNER`, `CAN_USE`, `CAN_MONITOR` and `CAN_MANAGE`:

```hcl
data "databricks_current_user" "me" {}
Expand Down
2 changes: 1 addition & 1 deletion permissions/resource_permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func permissionsResourceIDFields() []permissionsIDFieldMapping {
{"repo_path", "repo", "repos", []string{"CAN_READ", "CAN_RUN", "CAN_EDIT", "CAN_MANAGE"}, PATH},
{"authorization", "tokens", "authorization", []string{"CAN_USE"}, SIMPLE},
{"authorization", "passwords", "authorization", []string{"CAN_USE"}, SIMPLE},
{"sql_endpoint_id", "warehouses", "sql/warehouses", []string{"CAN_USE", "CAN_MANAGE", "IS_OWNER"}, SIMPLE},
{"sql_endpoint_id", "warehouses", "sql/warehouses", []string{"CAN_USE", "CAN_MANAGE", "CAN_MONITOR", "IS_OWNER"}, SIMPLE},
{"sql_dashboard_id", "dashboard", "sql/dashboards", []string{"CAN_EDIT", "CAN_RUN", "CAN_MANAGE", "CAN_VIEW"}, SIMPLE},
{"sql_alert_id", "alert", "sql/alerts", []string{"CAN_EDIT", "CAN_RUN", "CAN_MANAGE", "CAN_VIEW"}, SIMPLE},
{"sql_query_id", "query", "sql/queries", []string{"CAN_EDIT", "CAN_RUN", "CAN_MANAGE", "CAN_VIEW"}, SIMPLE},
Expand Down

0 comments on commit e7d7e27

Please sign in to comment.