Enable auto re-attachment of rules
This guide explains how to configure your Snowflake environment to enable automatic reattachment of rules in Atlan.
Prerequisites
Make sure the following conditions are met:
- The recreated asset has the same name and similar structure.
- The original rule is still present and not deleted.
- The feature is enabled for your tenant.
Grant privileges
Below are the minimum privileges the atlan_dq_service_role role needs to reattach rules automatically. Replace <database-name>
and similar placeholders with your own object names.
- Database and schema usage: Enables Atlan to discover and reference objects.
GRANT USAGE ON DATABASE <database-name> TO ROLE atlan_dq_service_role;
GRANT USAGE ON ALL SCHEMAS IN DATABASE <database-name> TO ROLE atlan_dq_service_role;
- Table and view reference: Required for rules that reference columns in these objects.
GRANT REFERENCES ON ALL TABLES IN DATABASE <database-name> TO ROLE atlan_dq_service_role;
GRANT REFERENCES ON ALL VIEWS IN DATABASE <database-name> TO ROLE atlan_dq_service_role;
- DMF schema and function usage: Enables execution of Snowflake Data Metric Functions created by Atlan.
-- Grant usage on the helper database / schema holding DMF functions
GRANT USAGE ON DATABASE ATLAN_DQ_DQ TO ROLE atlan_dq_service_role;
GRANT USAGE ON SCHEMA ATLAN_DQ_DQ.DMFS TO ROLE atlan_dq_service_role;
-- Grant usage on all existing and future functions within the DMF schema
GRANT USAGE ON ALL FUNCTIONS IN SCHEMA ATLAN_DQ_DQ.DMFS TO ROLE atlan_dq_service_role;
GRANT USAGE ON FUTURE FUNCTIONS IN SCHEMA ATLAN_DQ_DQ.DMFS TO ROLE atlan_dq_service_role;
- Future-proofing privileges: Ensures newly created objects are covered without manual grants.
GRANT USAGE ON FUTURE SCHEMAS IN DATABASE <database-name> TO ROLE atlan_dq_service_role;
GRANT REFERENCES ON FUTURE TABLES IN DATABASE <database-name> TO ROLE atlan_dq_service_role;
GRANT REFERENCES ON FUTURE VIEWS IN DATABASE <database-name> TO ROLE atlan_dq_service_role;
After these grants are applied, any table or view that's recreated with the same name automatically regains its attached rules, keeping your data quality checks continuous.
What’s next
Once privileges are configured, rule reattachment happens automatically whenever matching assets are recreated in Snowflake. You can now continue monitoring your data quality workflows without needing to manually reapply rules.
See also
- Auto re-attachment rules: Understand how Atlan automatically reattaches rules to recreated Snowflake assets to maintain continuous data quality enforcement.