Skip to content

Commit 0ae32ec

Browse files
committed
Be more explicit with required permissions.
1 parent 3bc713e commit 0ae32ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

installation/database-setup.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,10 @@ read@<your_database>
355355
```
356356

357357
To allow PowerSync to automatically enable [`changeStreamPreAndPostImages`](#post-images) on
358-
replicated collections, instead use:
358+
replicated collections, additionally add the `dbAdmin` permission:
359359

360360
```
361+
readWrite@<your_database>._powersync_checkpoints
361362
dbAdmin@<your_database>
362363
```
363364

@@ -369,7 +370,7 @@ readAnyDatabase@admin
369370

370371
### Permissions required - Self-hosted
371372

372-
For self-hosted MongoDB, PowerSync requires the `find` and `changeStream` permissions on the database being replicated.
373+
For self-hosted MongoDB, PowerSync requires the `find`, `changeStream` and `listCollections` permissions on the database being replicated.
373374

374375
PowerSync also requires `createCollection`, `dropCollection`, `insert`, `update`, and `remove` permissions to the `_powersync_checkpoints` collection.
375376

0 commit comments

Comments
 (0)