Skip to content

Update Databricks Setup #7165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions src/unify/data-graph/setup-guides/databricks-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ Run the following SQL to grant your Service Principal user read-only access to a
GRANT USAGE, SELECT, USE SCHEMA ON CATALOG `${catalog}` TO `${client_id}`;
```

## (Optional) Step 5: Restrict read-only access

### Restrict read-only access to schemas
## (Optional) Step 5: Restrict read-only access to schemas

Restrict access to specific schemas by running the following SQL:

Expand All @@ -79,19 +77,6 @@ USE CATALOG `${catalog}`;
GRANT USAGE, SELECT ON SCHEMA `${schema_1}` TO `${client_id}`;
GRANT USAGE, SELECT ON SCHEMA `${schema_2}` TO `${client_id}`;
...
```
### Restrict read-only access to tables
Restrict access to specific tables by running the following SQL:

```sql
GRANT USAGE ON CATALOG `${catalog}` TO `${client_id}`;
USE CATALOG `${catalog}`;
GRANT USAGE ON SCHEMA `${schema_1}` TO `${client_id}`;
USE SCHEMA `${schema_1}`;
GRANT SELECT ON TABLE `${table_1}` TO `${client_id}`;
GRANT SELECT ON TABLE `${table_2}` TO `${client_id}`;
...

```

## Step 6: Validate the permissions of your Service Principal user
Expand Down
Loading