Skip to content

Commit

Permalink
Add an example of permissions for alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
alexott committed Oct 18, 2024
1 parent 8ade8b5 commit 853c115
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/resources/alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,20 @@ resource "databricks_permissions" "alert_usage" {
}
```

## Access Control

[databricks_permissions](permissions.md#sql-alert-usage) can control which groups or individual users can *Manage*, *Edit*, *Run* or *View* individual alerts.

```hcl
resource "databricks_permissions" "alert_usage" {
sql_alert_id = databricks_alert.alert.id
access_control {
group_name = "users"
permission_level = "CAN_RUN"
}
}
```

## Import

This resource can be imported using alert ID:
Expand Down

0 comments on commit 853c115

Please sign in to comment.