@@ -31,45 +31,29 @@ database. For example:
31
31
.. source-not-admin
32
32
33
33
If the source database is a non-``admin `` database, you must have
34
- privileges that specify :authaction: `find ` action on the source
35
- database, and :authaction: `find ` action on the ``system.js `` collection
36
- in the source database. For example:
34
+ privileges that specify :authaction: `find `, :authaction: `listCollections `,
35
+ and :authaction: `listIndexes ` actions on the source database, and
36
+ :authaction: `find ` action on the ``system.js `` collection in the
37
+ source database. For example:
37
38
38
39
.. code-block :: javascript
39
40
40
- { resource: { db: " mySourceDB" , collection: " " }, actions: [ " find" ] }
41
+ { resource: { db: " mySourceDB" , collection: " " }, actions: [ " find" , " listCollections " , " listIndexes " ] }
41
42
{ resource: { db: " mySourceDB" , collection: " system.js" }, actions: [ " find" ] }
42
43
43
- If the source database is on a remote server, you also need the
44
- :authaction: `find ` action on the ``system.indexes `` and
45
- ``system.namespaces `` collections in the source database; e.g.
46
-
47
- .. code-block :: javascript
48
-
49
- { resource: { db: " mySourceDB" , collection: " system.indexes" }, actions: [ " find" ] }
50
- { resource: { db: " mySourceDB" , collection: " system.namespaces" }, actions: [ " find" ] }
51
-
52
44
.. source-admin
53
45
54
46
If the source database is the ``admin `` database, you must have
55
- privileges that specify :authaction: `find ` action on the ``admin ``
47
+ privileges that specify :authaction: `find `, :authaction: `listCollections `,
48
+ and :authaction: `listIndexes ` actions on the ``admin ``
56
49
database, and :authaction: `find ` action on the ``system.js ``,
57
50
``system.users ``, ``system.roles ``, and ``system.version `` collections
58
51
in the ``admin `` database. For example:
59
52
60
53
.. code-block :: javascript
61
54
62
- { resource: { db: " admin" , collection: " " }, actions: [ " find" ] }
55
+ { resource: { db: " admin" , collection: " " }, actions: [ " find" , " listCollections " , " listIndexes " ] }
63
56
{ resource: { db: " admin" , collection: " system.js" }, actions: [ " find" ] }
64
57
{ resource: { db: " admin" , collection: " system.users" }, actions: [ " find" ] }
65
58
{ resource: { db: " admin" , collection: " system.roles" }, actions: [ " find" ] }
66
59
{ resource: { db: " admin" , collection: " system.version" }, actions: [ " find" ] }
67
-
68
- If the source database is on a remote server, the you also need the
69
- :authaction: `find ` action on the ``system.indexes `` and
70
- ``system.namespaces `` collections in the ``admin `` database; e.g.
71
-
72
- .. code-block :: javascript
73
-
74
- { resource: { db: " admin" , collection: " system.indexes" }, actions: [ " find" ] }
75
- { resource: { db: " admin" , collection: " system.namespaces" }, actions: [ " find" ] }
0 commit comments