Skip to content

Commit 0672e71

Browse files
authored
Merge pull request #6061 from segmentio/more-snowflake-setup-updates
Snowflake setup updates
2 parents e18a7f8 + 4653d99 commit 0672e71

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/unify/linked-profiles/setup-guides/snowflake-setup.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ GRANT CREATE SCHEMA ON DATABASE identifier($segment_connection_db) TO ROLE iden
9191

9292
### Grant access to other databases
9393

94-
Next, give the Segment user **read-only** access to all the other databases you want to use for Linked Profiles.
94+
Next, give the Segment user **read-only** access to all the other databases you want to use for Linked Profiles. You must grant access to the Profiles Sync database.
9595

9696
Run the SQL query below for **each** database you want to use for Linked Profiles:
9797

@@ -128,12 +128,15 @@ SET segment_connection_role='SEGMENT_LINKED_ROLE';
128128
129129
-- View specific schemas in database
130130
GRANT USAGE ON DATABASE identifier($db) TO ROLE identifier($segment_connection_role);
131-
132131
GRANT USAGE ON SCHEMA identifier($schema) TO ROLE identifier($segment_connection_role);
133-
134132
GRANT SELECT ON ALL TABLES IN SCHEMA identifier($schema) TO ROLE identifier($segment_connection_role);
135-
136133
GRANT SELECT ON FUTURE TABLES IN SCHEMA identifier($schema) TO ROLE identifier($segment_connection_role);
134+
GRANT SELECT ON ALL VIEWS IN SCHEMA identifier($linked_read_only_database) TO ROLE identifier($segment_connection_role);
135+
GRANT SELECT ON FUTURE VIEWS IN SCHEMA identifier($linked_read_only_database) TO ROLE identifier($segment_connection_role);
136+
GRANT SELECT ON ALL EXTERNAL TABLES IN SCHEMA identifier($linked_read_only_database) TO ROLE identifier($segment_connection_role);
137+
GRANT SELECT ON FUTURE EXTERNAL TABLES IN SCHEMA identifier($linked_read_only_database) TO ROLE identifier($segment_connection_role);
138+
GRANT SELECT ON ALL MATERIALIZED VIEWS IN SCHEMA identifier($linked_read_only_database) TO ROLE identifier($segment_connection_role);
139+
GRANT SELECT ON FUTURE MATERIALIZED VIEWS IN SCHEMA identifier($linked_read_only_database) TO ROLE identifier($segment_connection_role);
137140
138141
139142
```

0 commit comments

Comments
 (0)