diff --git a/installation/database-setup.mdx b/installation/database-setup.mdx index 3f5834ae..176cf95f 100644 --- a/installation/database-setup.mdx +++ b/installation/database-setup.mdx @@ -355,9 +355,10 @@ read@ ``` To allow PowerSync to automatically enable [`changeStreamPreAndPostImages`](#post-images) on -replicated collections, instead use: +replicated collections, additionally add the `dbAdmin` permission: ``` +readWrite@._powersync_checkpoints dbAdmin@ ``` @@ -369,7 +370,7 @@ readAnyDatabase@admin ### Permissions required - Self-hosted -For self-hosted MongoDB, PowerSync requires the `find` and `changeStream` permissions on the database being replicated. +For self-hosted MongoDB, PowerSync requires the `find`, `changeStream` and `listCollections` permissions on the database being replicated. PowerSync also requires `createCollection`, `dropCollection`, `insert`, `update`, and `remove` permissions to the `_powersync_checkpoints` collection.