Skip to content

Commit 696a9eb

Browse files
📝 added documentation for JOBS_API version usage to ensure ACLs are working as expected (#776)
1 parent fae4812 commit 696a9eb

3 files changed

Lines changed: 26 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
[Please read through the Keep a Changelog (~5min)](https://keepachangelog.com/en/1.0.0/).
1111

12+
## [UNRELEASED] - YYYY-MM-DD
13+
14+
### Fixed
15+
16+
- Added documentation for JOBS_API version usage to ensure ACLs are working as expected
17+
1218
## [0.8.14] - 2023-05-11
1319

1420
### Added

docs/features/permissions_management.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@
99

1010
## :material-file-check: Providing the permissions
1111

12+
!!! warning "Enforcing Jobs API 2.1 usage to work with ACLs"
13+
14+
Provisioning of ACLs is only supported with Jobs API 2.1. To enforce Jobs API 2.1 usage, please use the following settings:
15+
16+
For local setup via `~/.databrickscfg` use the following command:
17+
18+
```bash
19+
databricks jobs configure --version=2.1 # add --profile=<profile-name> to enforce configuration for different profiles
20+
```
21+
22+
In CI pipelines, provide the following environment variable:
23+
24+
```bash
25+
DATABRICKS_JOBS_API_VERSION=2.1
26+
```
27+
1228
To manage permissions provide the following payload at the workflow level:
1329

1430
```yaml
@@ -31,8 +47,10 @@ environments:
3147
tasks:
3248
...
3349
access_control_list:
34-
- user_name: "some_user@example.com"
50+
- service_principal_name: "service-principal://some-sp-name" # alternatively, you can directly provide the Id string itself
3551
permission_level: "IS_OWNER"
52+
- user_name: "some_user@example.com"
53+
permission_level: "CAN_MANAGE"
3654
- group_name: "some-user-group"
3755
permission_level: "CAN_VIEW"
3856
```

docs/reference/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ environments:
247247
workflows:
248248
- name: "example-workflow"
249249
access_control_list:
250-
- user_name: "service-principal://some-service-principal-name"
250+
- service_principal_name: "service-principal://some-service-principal-name"
251251
permission_level: "IS_OWNER"
252252
- user_name: "some-real-user@email.com"
253253
permission_level: "CAN_MANAGE"

0 commit comments

Comments
 (0)