diff --git a/openmetadata-docs/content/openmetadata/connectors/database/snowflake/airflow.md b/openmetadata-docs/content/openmetadata/connectors/database/snowflake/airflow.md index 03bd28deff9..00cb055513f 100644 --- a/openmetadata-docs/content/openmetadata/connectors/database/snowflake/airflow.md +++ b/openmetadata-docs/content/openmetadata/connectors/database/snowflake/airflow.md @@ -39,9 +39,13 @@ pip3 install "openmetadata-ingestion[snowflake-usage]" -While running the usage workflow, OpenMetadata fetches the query logs by querying `snowflake.account_usage.query_history` table. +- While running the usage workflow, Openmetadata fetches the query logs by querying `snowflake.account_usage.query_history` table. + For this the snowflake user should be granted the `ACCOUNTADMIN` role (or a role granted IMPORTED PRIVILEGES on the database). +- If ingesting tags, the user should also have permissions to query `snowflake.account_usage.tag_references`. + For this the snowflake user should be granted the `ACCOUNTADMIN` role (or a role granted IMPORTED PRIVILEGES on the database) +- If during the ingestion you want to set the session tags, note that the user should have `ALTER SESSION` permissions. -For this the snowflake user should be granted the `ACCOUNTADMIN` role (or a role granted IMPORTED PRIVILEGES on the database) +You can find more information about the Account Usage [here](https://docs.snowflake.com/en/sql-reference/account-usage.html). diff --git a/openmetadata-docs/content/openmetadata/connectors/database/snowflake/cli.md b/openmetadata-docs/content/openmetadata/connectors/database/snowflake/cli.md index 4bf109e9aef..305d79b2a8a 100644 --- a/openmetadata-docs/content/openmetadata/connectors/database/snowflake/cli.md +++ b/openmetadata-docs/content/openmetadata/connectors/database/snowflake/cli.md @@ -39,9 +39,13 @@ pip3 install "openmetadata-ingestion[snowflake-usage]" -While running the usage workflow, OpenMetadata fetches the query logs by querying `snowflake.account_usage.query_history` table. +- While running the usage workflow, Openmetadata fetches the query logs by querying `snowflake.account_usage.query_history` table. + For this the snowflake user should be granted the `ACCOUNTADMIN` role (or a role granted IMPORTED PRIVILEGES on the database). +- If ingesting tags, the user should also have permissions to query `snowflake.account_usage.tag_references`. + For this the snowflake user should be granted the `ACCOUNTADMIN` role (or a role granted IMPORTED PRIVILEGES on the database) +- If during the ingestion you want to set the session tags, note that the user should have `ALTER SESSION` permissions. -For this the snowflake user should be granted the `ACCOUNTADMIN` role (or a role granted IMPORTED PRIVILEGES on the database) +You can find more information about the Account Usage [here](https://docs.snowflake.com/en/sql-reference/account-usage.html). diff --git a/openmetadata-docs/content/openmetadata/connectors/database/snowflake/index.md b/openmetadata-docs/content/openmetadata/connectors/database/snowflake/index.md index f06fdf5ed43..dcf82223121 100644 --- a/openmetadata-docs/content/openmetadata/connectors/database/snowflake/index.md +++ b/openmetadata-docs/content/openmetadata/connectors/database/snowflake/index.md @@ -45,9 +45,13 @@ custom Airflow plugins to handle the workflow deployment. -While running the usage workflow, Openmetadata fetches the query logs by querying `snowflake.account_usage.query_history` table. +- While running the usage workflow, Openmetadata fetches the query logs by querying `snowflake.account_usage.query_history` table. + For this the snowflake user should be granted the `ACCOUNTADMIN` role (or a role granted IMPORTED PRIVILEGES on the database). +- If ingesting tags, the user should also have permissions to query `snowflake.account_usage.tag_references`. + For this the snowflake user should be granted the `ACCOUNTADMIN` role (or a role granted IMPORTED PRIVILEGES on the database) +- If during the ingestion you want to set the session tags, note that the user should have `ALTER SESSION` permissions. -For this the snowflake user should be granted the `ACCOUNTADMIN` role (or a role granted IMPORTED PRIVILEGES on the database) +You can find more information about the Account Usage [here](https://docs.snowflake.com/en/sql-reference/account-usage.html).