Skip to content

Commit 84419ae

Browse files
docs: Update Snowflake docs with permissions (#9608)
* Update Snowflake docs with permissions * Update docs/pages/product/configuration/data-sources/snowflake.mdx --------- Co-authored-by: Igor Lukanin <mail+github@igor.lukanin.name>
1 parent aad0138 commit 84419ae

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/pages/product/configuration/data-sources/snowflake.mdx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44

55
## Prerequisites
66

7+
<InfoBox>
8+
9+
In order to connect Cube to Snowflake, you need to grant certain permissions to the Snowflake role
10+
used by Cube. Cube requires the role to have `USAGE` on databases and schemas
11+
and `SELECT` on tables. An example configuration:
12+
```
13+
GRANT USAGE ON DATABASE ABC TO ROLE XYZ;
14+
GRANT USAGE ON ALL SCHEMAS IN DATABASE ABC TO ROLE XYZ;
15+
GRANT USAGE ON FUTURE SCHEMAS IN DATABASE ABC TO ROLE XYZ;
16+
GRANT SELECT ON ALL TABLES IN DATABASE ABC TO ROLE XYZ;
17+
GRANT SELECT ON FUTURE TABLES IN DATABASE ABC TO ROLE XYZ;
18+
```
19+
20+
</InfoBox>
21+
722
- [Account/Server URL][snowflake-docs-account-id] for Snowflake.
823
- User name and password or an RSA private key for the Snowflake account.
924
- Optionally, the warehouse name, the user role, and the database name.
@@ -200,4 +215,4 @@ connections are made over HTTPS.
200215
[snowflake-format-2]: https://docs.snowflake.com/en/user-guide/admin-account-identifier#format-2-account-locator-in-a-region
201216
[snowflake-docs-azure]: https://docs.snowflake.com/en/user-guide/data-load-azure-config#option-1-configuring-a-snowflake-storage-integration
202217
[azure-bs-docs-get-key]: https://docs.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&tabs=azure-portal#view-account-access-keys
203-
[link-snowflake-quoted-identifiers]: https://docs.snowflake.com/en/sql-reference/identifiers-syntax#double-quoted-identifiers
218+
[link-snowflake-quoted-identifiers]: https://docs.snowflake.com/en/sql-reference/identifiers-syntax#double-quoted-identifiers

0 commit comments

Comments
 (0)