Skip to content

Commit a78b979

Browse files
authored
Merge pull request #5507 from segmentio/snowflake-setup
Update Linked Events docs
2 parents d611a11 + 2a533ef commit a78b979

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

src/unify/linked-profiles/linked-events.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,15 @@ Before getting started with Linked Events, you'll need:
3535

3636
The following Segment access [roles](/docs/segment-app/iam/roles/) apply to Linked Events:
3737

38-
**Entities Admin Access**: Full CRUD (create, read, access, and delete) access to all Entities within a workspace. You can also grant or revoke user permissions.
38+
**Entities Admin Access**: Entities Admins have the ability to view and edit entity models and connection details.
3939

40-
**Entities Read-only Access**: Read-only access to all Entities models and destinations in a workspace.
40+
**Entities Read-only Access**: Entities Read-only users have the ability to view entity models.
4141

42-
For Linked Events, you need the following roles:
43-
- `Workspace Owner`
44-
- `Entities Admin`
45-
- `Source Admin`
42+
To create models and enrich events in destinations, you need the following roles:
43+
- `Workspace Owner` and `Entities Admin`
4644

47-
To use Connections with Linked Events:
48-
- `Workspace Owner`
49-
- `Unify Read-only or Admin`
45+
OR:
46+
- `Unify and Engage Admin`
5047
- `Entities Admin`
5148
- `Source Admin`
5249

@@ -65,13 +62,17 @@ To get started, you'll need to connect a data warehouse. Linked Events supports
6562

6663
### Schema
6764

68-
For Linked Events, the sync destination is an internal Segment data store. To track the data you send to Segment, you can view deltas/diffs in tables within a single schema Segment creates called `_segment_reverse_etl`.
65+
Linked Events uses Reverse ETL to compute the incremental changes to your data directly within your data warehouse. The Unique Identifier column detects data changes, such as new, updated, and deleted records.
66+
67+
For Segment to compute data changes in your warehouse, Segment requires both read and write permissions to the warehouse schema table. At a high level, the extract process requires read permissions for the query being executed. Segment tracks changes to the query results through tables that Segment manages in a dedicated schema (for example, `_segment_reverse_etl`), which requires some write permissions.
6968

70-
You can choose which database within your warehouse this data lives in.
69+
> warning ""
70+
> Only sync what you need for enrichment. There may be cost implications to having Segment query your warehouse tables.
7171
7272
> info ""
7373
> Linked Events syncs data from your warehouse approximately once every hour.
7474
75+
7576
### Supported data warehouses
7677

7778
The table below shows the data warehouses Linked Events supports. View the Segment docs for your warehouse, then carry out the corresponding steps.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ Enter and run the code below to create a virtual warehouse. Linked Events needs
3838

3939
## Create a new role
4040

41-
Enter and run the code below to create specific roles for Linked Events. All Snowflake access is specified through roles, which are then assigned to the user you’ll create later.
41+
Enter and run the code below to create specific roles for Linked Profiles. All Snowflake access is specified through roles, which are then assigned to the user you’ll create later.
4242

4343
```ts
4444
-- create role
45-
GRANT ROLE segment_entities;
45+
CREATE ROLE segment_entities;
4646

4747
-- warehouse access
4848
GRANT USAGE ON WAREHOUSE segment_entities TO ROLE segment_entities;
4949

5050
-- database access
51-
GRANT USAGE ON DATABASE segment_entities TO ROLE segment_entities;
52-
GRANT CREATE SCHEMA ON DATABASE segment_entities TO ROLE segment_entities;
51+
GRANT USAGE ON DATABASE <database-name> TO ROLE segment_entities;
52+
GRANT CREATE SCHEMA ON DATABASE <database-name> TO ROLE segment_entities;
5353
```
5454

5555
## Create a new user

0 commit comments

Comments
 (0)