Skip to content

Commit

Permalink
docs(ingest/snowflake): update permissions for dynamic tables (datahu…
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurinehate authored Dec 12, 2024
1 parent 47bd446 commit c0b49a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/quick-ingestion-guides/snowflake/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ In order to configure ingestion from Snowflake, you'll first have to ensure you
grant select on future external tables in database identifier($db_var) to role datahub_role;
grant select on all views in database identifier($db_var) to role datahub_role;
grant select on future views in database identifier($db_var) to role datahub_role;
grant select on all dynamic tables in database identifier($db_var) to role datahub_role;
grant select on future dynamic tables in database identifier($db_var) to role datahub_role;

-- Grant access to view tables and views
grant references on all tables in database identifier($db_var) to role datahub_role;
Expand All @@ -51,6 +53,9 @@ In order to configure ingestion from Snowflake, you'll first have to ensure you
grant references on future external tables in database identifier($db_var) to role datahub_role;
grant references on all views in database identifier($db_var) to role datahub_role;
grant references on future views in database identifier($db_var) to role datahub_role;
-- Grant access to dynamic tables
grant monitor on all dynamic tables in database identifier($db_var) to role datahub_role;
grant monitor on future dynamic tables in database identifier($db_var) to role datahub_role;

-- Assign privileges to extract lineage and usage statistics from Snowflake by executing the below query.
grant imported privileges on database snowflake to role datahub_role;
Expand Down
4 changes: 4 additions & 0 deletions metadata-ingestion/docs/sources/snowflake/snowflake_pre.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ grant references on all external tables in database "<your-database>" to role da
grant references on future external tables in database "<your-database>" to role datahub_role;
grant references on all views in database "<your-database>" to role datahub_role;
grant references on future views in database "<your-database>" to role datahub_role;
grant monitor on all dynamic tables in database "<your-database>" to role datahub_role;
grant monitor on future dynamic tables in database "<your-database>" to role datahub_role;

// If you ARE using Snowflake Profiling or Classification feature: Grant select privileges to your tables
grant select on all tables in database "<your-database>" to role datahub_role;
grant select on future tables in database "<your-database>" to role datahub_role;
grant select on all external tables in database "<your-database>" to role datahub_role;
grant select on future external tables in database "<your-database>" to role datahub_role;
grant select on all dynamic tables in database "<your-database>" to role datahub_role;
grant select on future dynamic tables in database "<your-database>" to role datahub_role;

// Create a new DataHub user and assign the DataHub role to it
create user datahub_user display_name = 'DataHub' password='' default_role = datahub_role default_warehouse = '<your-warehouse>';
Expand Down

0 comments on commit c0b49a6

Please sign in to comment.