1
1
ref : listDatabases-auth-privileges
2
+ content : |
3
+
4
+ - If ``authorizedDatabases`` is unspecified, and
5
+
6
+ - If the user has :authaction:`listDatabases` action on the
7
+ cluster resource, :dbcommand:`listDatabases` command returns all
8
+ databases.
9
+
10
+ - If the user does not have :authaction:`listDatabases` action on
11
+ the cluster:
12
+
13
+ - **For MongoDB 4.0.6+**, :dbcommand:`listDatabases` command returns
14
+ only the databases for which the user has privileges
15
+ (including databases for which the user has privileges on
16
+ specific collections).
17
+
18
+ - **For MongoDB 4.0.5**, :dbcommand:`listDatabases` command returns
19
+ only the databases for which the user has the
20
+ :authaction:`find` action on the database resource (and not
21
+ the collection resource).
22
+
23
+ - If ``authorizedDatabases`` is ``true``,
24
+
25
+
26
+ - **For MongoDB 4.0.6+**, :dbcommand:`listDatabases` command returns
27
+ only the databases for which the user has privileges
28
+ (including databases for which the user has privileges on
29
+ specific collections).
30
+
31
+ - **For MongoDB 4.0.5**, :dbcommand:`listDatabases` command returns
32
+ only the databases for which the user has the :authaction:`find`
33
+ action on the database resource (and not the collection
34
+ resource).
35
+
36
+ - If ``authorizedDatabases`` is ``false``, and
37
+
38
+ - If the user has :authaction:`listDatabases` action on the
39
+ cluster, :dbcommand:`listDatabases` command returns all databases
40
+
41
+ - If the user does not have :authaction:`listDatabases` action on
42
+ the cluster, :dbcommand:`listDatabases` command errors with
43
+ insufficient permissions.
44
+ ---
45
+ ref : listDatabases-auth-privileges-4.0.6
46
+ content : |
47
+
48
+ - If ``authorizedDatabases`` is unspecified, and
49
+
50
+ - If the user has :authaction:`listDatabases` action on the
51
+ cluster resource, :dbcommand:`listDatabases` command returns all
52
+ databases.
53
+
54
+ - If the user does not have :authaction:`listDatabases` action on
55
+ the cluster, :dbcommand:`listDatabases` command returns only the
56
+ databases for which the user has privileges (including databases
57
+ for which the user has privileges on specific collections).
58
+
59
+ - If ``authorizedDatabases`` is ``true``, :dbcommand:`listDatabases`
60
+ command returns only the databases for which the user has
61
+ privileges (including databases for which the user has privileges
62
+ on specific collections).
63
+
64
+ - If ``authorizedDatabases`` is ``false``, and
65
+
66
+ - If the user has :authaction:`listDatabases` action on the
67
+ cluster, :dbcommand:`listDatabases` command returns all databases
68
+
69
+ - If the user does not have :authaction:`listDatabases` action on
70
+ the cluster, :dbcommand:`listDatabases` command errors with
71
+ insufficient permissions.
72
+ ---
73
+ ref : listDatabases-auth-privileges-4.0.5
2
74
content : |
3
75
4
76
- If ``authorizedDatabases`` is unspecified, and
@@ -16,7 +88,6 @@ content: |
16
88
command returns only the databases for which the user has the
17
89
:authaction:`find` action on the database resource (and not the
18
90
collection resource).
19
-
20
91
21
92
- If ``authorizedDatabases`` is ``false``, and
22
93
@@ -26,7 +97,6 @@ content: |
26
97
- If the user does not have :authaction:`listDatabases` action on
27
98
the cluster, :dbcommand:`listDatabases` command errors with
28
99
insufficient permissions.
29
-
30
100
---
31
101
ref : listDatabases-auth-4.0.0-4.0.4
32
102
content : |
@@ -38,11 +108,21 @@ content: |
38
108
---
39
109
ref : listDatabases-auth-4.0.5
40
110
content : |
41
- For MongoDB 4.0.5+ :
111
+ For MongoDB 4.0.5:
42
112
If the user does not have the :authaction:`listDatabases`
43
113
privilege action, users can run the :dbcommand:`listDatabases`
44
114
command to return a list of databases for which the user has the
45
115
:authaction:`find` action privilege if the command is run with
46
116
``authorizedDatabases`` option unspecified or set to ``true``.
47
-
117
+ ---
118
+ ref : listDatabases-auth-4.0.6
119
+ content : |
120
+ For MongoDB 4.0.6+:
121
+ If the user does not have the :authaction:`listDatabases`
122
+ privilege action, users can run the :dbcommand:`listDatabases`
123
+ command to return a list of databases for which the user has
124
+ privileges (including databases for which the user has privileges
125
+ on specific collections) if the command is run with
126
+ ``authorizedDatabases`` option unspecified or set to ``true``.
127
+
48
128
...
0 commit comments