Merge pull request #3406 from overleaf/timothee-sync-user-entitlements-doc

Update User Entitlements Sync Script README

GitOrigin-RevId: 0bcdc9c79ab4ca9229f38ab57d71019508b5792d
This commit is contained in:
Timothée Alby 2020-11-26 15:22:17 +01:00 committed by Copybot
parent 7dd38f775b
commit d5544f0626

View file

@ -27,7 +27,7 @@ Connect to postgres by running `heroku psql -a electric-leaf-4093`
Run the following v2_user_universities export comand.
```
\copy (select uu.user_id, uu.email, uu.cached_entitlement, ud.university_id from v2_user_universities uu LEFT JOIN university_domains ud ON uu.university_domain_id = ud.id) to 'cached-entitlements.csv' with csv;
\copy (select uu.user_id, uu.email, uu.cached_entitlement, ud.university_id from v2_user_universities uu LEFT JOIN university_domains ud ON uu.university_domain_id = ud.id WHERE uu.removed_at IS NULL) to 'cached-entitlements.csv' with csv;
```
**Note: this file contains PII and caution must be exercised to insure that it
@ -37,4 +37,4 @@ is never transferred or stored insecurely and that it is deleted ASAP**
```
node scripts/sync-user-entitlements/sync-user-entitlements --user-entitlements user-entitlements.json --cached-entitlements cached-entitlements.csv --commit
```
```