You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/unify/linked-profiles/setup-guides/redshift-setup.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,11 +32,11 @@ GRANT ROLE segment_entities TO segment_entities_user;
32
32
33
33
## Grant access to schemas and tables
34
34
35
-
You'll need to grant access to schemas and tables that you'd like to enrich with. This allows Segment to list schemas, tables, and columns, as well as create entities with data extracted and ingested to Segment
35
+
You'll need to grant access to schemas and tables that you'd like to enrich with. This allows Segment to list schemas, tables, and columns, as well as create entities with data extracted and ingested to Segment.
36
36
37
37
### Schemas
38
38
39
-
Grant schema permissions based on customer need. View Amazon's docs for more on [schema permissions](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT.html){:target="_blank"} and to view some[example commands](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT-examples.html){:target="_blank"} that you can use to grant permissions.
39
+
Grant schema permissions based on customer need. Visit Amazon's docs for more on [schema permissions](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT.html){:target="_blank"} and to view [example commands](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT-examples.html){:target="_blank"} that you can use to grant permissions.
40
40
41
41
```sql
42
42
-- view specific schemas in database
@@ -45,19 +45,21 @@ GRANT USAGE ON SCHEMA <schema-name> TO ROLE segment_entities;
45
45
46
46
### Tables
47
47
48
-
Grant table permissions based on customer need. View descriptions of table permissions in [Amazon's docs](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT.html){:target="_blank"}.
48
+
Grant table permissions based on customer need. View descriptions of [table permissions](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT.html){:target="_blank"} from Amazon.
49
49
50
50
```sql
51
51
-- query data from a specific table in a schema
52
52
GRANTSELECTON TABLE <schema-name>.<table-name> TO ROLE segment_entities;
53
53
```
54
54
55
-
##Grant access to Reverse ETL
55
+
### RETL table permissions
56
56
57
-
Run the SQL commands below if RETL has ever run in your database and you add a new user.
57
+
If you've used RETL in your database, and added a new user, you'll need to add the following table permissions:
58
58
59
59
```sql
60
60
GRANT USAGE, CREATE ON SCHEMA __segment_reverse_etl TO ROLE segment_entities;
61
61
62
62
GRANTSELECT, INSERT, UPDATE, DELETEON ALL TABLES IN SCHEMA __segment_reverse_etl TO ROLE segment_entities;
63
63
```
64
+
65
+
Learn more about Redshift's [table permissions](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT.html){:target="_blank"}.
0 commit comments