Skip to content

Commit c513f60

Browse files
DOCSP-23937 Fix Role Issue on Mongosync Start Page (#287)
* DOCSP-23937 Fix Role Issue on Mongosync Start Page * DOCSP-23937 updates for RS' feedback
1 parent 6c177f8 commit c513f60

File tree

1 file changed

+9
-27
lines changed

1 file changed

+9
-27
lines changed

source/reference/api/start.txt

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,18 @@ State
2727
To use the ``start`` endpoint, ``mongosync`` must be in the ``IDLE``
2828
state.
2929

30-
User Write Blocking
31-
~~~~~~~~~~~~~~~~~~~
32-
33-
.. include:: /includes/fact-write-blocking-requirement.rst
34-
35-
To set a custom role for the ``mongosync`` user:
36-
37-
#. To create a custom role, use the :dbcommand:`createRole` command:
38-
39-
.. code-block:: javascript
40-
41-
db.adminCommand( {
42-
createRole: "reverseSync",
43-
privileges: [ {
44-
resource: { db: "", collection: "" },
45-
actions: [ "setUserWriteBlockMode", "bypassWriteBlockingMode" ]
46-
} ],
47-
roles: []
48-
} )
49-
50-
#. To grant the custom role to the ``mongosync`` user, use the :dbcommand:`grantRolesToUser` command:
30+
Permissions
31+
~~~~~~~~~~~
5132

52-
.. code-block:: javascript
33+
The user specified in the ``mongosync`` connection string must have the
34+
required permissions on the source and destination clusters. Refer to
35+
:ref:`c2c-permissions-and-roles` to ensure that the user has the correct
36+
permissions to start the synchronization.
5337

54-
db.adminCommand( {
55-
grantRolesToUser: "mongosync-user",
56-
roles: [ { role: "reverseSync", db: "admin" } ]
57-
} )
38+
Multiple ``mongosync`` Instances
39+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5840

59-
Ensure that you use this configured ``mongosync`` user in the connection
41+
Ensure that you use the configured ``mongosync`` user in the connection
6042
strings for the :setting:`cluster0` or :setting:`cluster1` settings when
6143
you start ``mongosync``.
6244

0 commit comments

Comments
 (0)