@@ -58,13 +58,8 @@ Every database includes the following client roles:
58
58
- :authaction:`killCursors`
59
59
- :authaction:`listIndexes`
60
60
- :authaction:`listCollections`
61
-
62
-
63
- .. include:: /includes/extracts/listDatabases-auth-4.0.6.rst
64
-
65
- .. include:: /includes/extracts/listDatabases-auth-4.0.5.rst
66
-
67
- .. include:: /includes/extracts/listDatabases-auth-4.0.0-4.0.4.rst
61
+
62
+ .. include:: /includes/listDatabases-auth
68
63
69
64
.. authrole:: readWrite
70
65
@@ -227,8 +222,6 @@ Cluster Administration Roles
227
222
228
223
.. authrole:: clusterManager
229
224
230
- .. versionchanged:: 3.4
231
-
232
225
.. include:: /includes/extracts/built-in-roles-clusterManager.rst
233
226
234
227
.. list-table::
@@ -249,7 +242,7 @@ Cluster Administration Roles
249
242
- :authaction:`cleanupOrphaned`
250
243
- :authaction:`flushRouterConfig`
251
244
- :authaction:`getDefaultRWConcern` (New in version 4.4)
252
- - :authaction:`listSessions` (New in version 3.6)
245
+ - :authaction:`listSessions`
253
246
- :authaction:`listShards`
254
247
- :authaction:`removeShard`
255
248
- :authaction:`replSetConfigure`
@@ -266,7 +259,7 @@ Cluster Administration Roles
266
259
- .. hlist::
267
260
:columns: 1
268
261
269
- - :authaction:`clearJumboFlag` (New in 4.2.3 and 4.0.15 )
262
+ - :authaction:`clearJumboFlag` (New in 4.2.3)
270
263
- :authaction:`enableSharding`
271
264
- :authaction:`refineCollectionShardKey` (New in 4.4)
272
265
- :authaction:`moveChunk`
@@ -375,16 +368,14 @@ Cluster Administration Roles
375
368
376
369
.. authrole:: clusterMonitor
377
370
378
- .. versionchanged:: 3.4
379
-
380
371
.. include:: /includes/extracts/built-in-roles-clusterMonitor.rst
381
372
382
373
Permits the following actions on the cluster as a whole:
383
374
384
375
.. hlist::
385
376
:columns: 2
386
377
387
- - :authaction:`checkFreeMonitoringStatus` (New in version 4.0)
378
+ - :authaction:`checkFreeMonitoringStatus`
388
379
- :authaction:`connPoolStats`
389
380
- :authaction:`getCmdLineOpts`
390
381
- :authaction:`getDefaultRWConcern` (New in version 4.4)
@@ -394,13 +385,13 @@ Cluster Administration Roles
394
385
- :authaction:`hostInfo`
395
386
- :authaction:`inprog`
396
387
- :authaction:`listDatabases`
397
- - :authaction:`listSessions` (New in version 3.6)
388
+ - :authaction:`listSessions`
398
389
- :authaction:`listShards`
399
390
- :authaction:`netstat`
400
391
- :authaction:`replSetGetConfig`
401
392
- :authaction:`replSetGetStatus`
402
393
- :authaction:`serverStatus`
403
- - :authaction:`setFreeMonitoring` (New in version 4.0)
394
+ - :authaction:`setFreeMonitoring`
404
395
- :authaction:`shardingState`
405
396
- :authaction:`top`
406
397
@@ -410,7 +401,7 @@ Cluster Administration Roles
410
401
- :authaction:`dbStats`
411
402
- :authaction:`getShardVersion`
412
403
- :authaction:`indexStats`
413
- - :authaction:`useUUID` (New in version 3.6)
404
+ - :authaction:`useUUID`
414
405
415
406
Permits the :authaction:`find` action on all :data:`system.profile
416
407
<<database>.system.profile>` collections in the cluster.
@@ -538,8 +529,8 @@ Cluster Administration Roles
538
529
- :authaction:`flushRouterConfig`
539
530
- :authaction:`fsync`
540
531
- :authaction:`invalidateUserCache`
541
- - :authaction:`killAnyCursor` (New in version 4.0)
542
- - :authaction:`killAnySession` (New in version 3.6)
532
+ - :authaction:`killAnyCursor`
533
+ - :authaction:`killAnySession`
543
534
- :authaction:`killop`
544
535
- :authaction:`logRotate`
545
536
- :authaction:`oidReset`
@@ -603,11 +594,11 @@ Backup and Restoration Roles
603
594
:data:`system.js <<database>.system.js>`, and
604
595
:data:`system.profile <<database>.system.profile>`
605
596
606
- - the :data:`admin.system.users` and :data:`admin.system.roles` collections
597
+ - The :data:`admin.system.users` and :data:`admin.system.roles` collections
607
598
608
- - the :data:`config.settings` collection
599
+ - The :data:`config.settings` collection
609
600
610
- - legacy ``system.users`` collections from versions of MongoDB prior to 2.6
601
+ - Legacy ``system.users`` collections from versions of MongoDB prior to 2.6
611
602
612
603
.. todo: Also provides the :authaction:`find` action on:
613
604
- system.new_users
@@ -738,21 +729,13 @@ All-Database Roles
738
729
739
730
.. include:: /includes/extracts/built-in-roles-readAnyDatabase.rst
740
731
741
- .. versionchanged:: 3.4
742
-
743
- .. include:: /includes/extracts/built-in-roles-readAnyDatabase-prior.rst
744
-
745
- .. include:: /includes/seealso-cluster-manager.rst
732
+ .. include:: /includes/seealso-cluster-manager.rst
746
733
747
734
.. authrole:: readWriteAnyDatabase
748
735
749
736
.. include:: /includes/extracts/built-in-roles-readWriteAnyDatabase.rst
750
737
751
- .. versionchanged:: 3.4
752
-
753
- .. include:: /includes/extracts/built-in-roles-readWriteAnyDatabase-prior.rst
754
-
755
- .. include:: /includes/seealso-cluster-manager.rst
738
+ .. include:: /includes/seealso-cluster-manager.rst
756
739
757
740
.. authrole:: userAdminAnyDatabase
758
741
@@ -765,7 +748,7 @@ All-Database Roles
765
748
- :authaction:`invalidateUserCache`
766
749
- :authaction:`listDatabases`
767
750
768
- The role also provides the following privilege actions on the
751
+ The role provides the following privilege actions on the
769
752
:data:`system.users <admin.system.users>` and
770
753
:data:`system.roles <admin.system.roles>` collections on the
771
754
``admin`` database, and on legacy ``system.users`` collections from
@@ -777,14 +760,8 @@ All-Database Roles
777
760
- :authaction:`find`
778
761
- :authaction:`killCursors`
779
762
- :authaction:`planCacheRead`
780
-
781
- .. versionchanged:: 2.6.4
782
- :authrole:`userAdminAnyDatabase` added the following privilege
783
- actions on the :data:`admin.system.users` and
784
- :data:`admin.system.roles` collections:
785
-
786
- - :authaction:`createIndex`
787
- - :authaction:`dropIndex`
763
+ - :authaction:`createIndex`
764
+ - :authaction:`dropIndex`
788
765
789
766
The :authrole:`userAdminAnyDatabase` role does not restrict the privileges
790
767
that a user can grant. As a result, :authrole:`userAdminAnyDatabase` users
@@ -793,22 +770,13 @@ All-Database Roles
793
770
role does not explicitly authorize privileges beyond user administration.
794
771
This role is effectively a MongoDB system :ref:`superuser <superuser>`.
795
772
796
- .. versionchanged:: 3.4
797
-
798
- :authrole:`userAdminAnyDatabase` no longer
799
- applies to the ``local`` and ``config`` databases.
800
-
801
- .. include:: /includes/seealso-cluster-manager.rst
773
+ .. include:: /includes/seealso-cluster-manager.rst
802
774
803
775
.. authrole:: dbAdminAnyDatabase
804
776
805
777
.. include:: /includes/extracts/built-in-roles-dbAdminAnyDatabase.rst
806
778
807
- .. versionchanged:: 3.4
808
-
809
- .. include:: /includes/extracts/built-in-roles-dbAdminAnyDatabase-prior.rst
810
-
811
- .. include:: /includes/seealso-cluster-manager.rst
779
+ .. include:: /includes/seealso-cluster-manager.rst
812
780
813
781
Starting in MongoDB 5.0, :authrole:`dbAdminAnyDatabase` includes the
814
782
:ref:`applyOps<internal-actions>` privilege action.
@@ -836,11 +804,6 @@ The following role provides full privileges on all resources:
836
804
837
805
.. include:: /includes/extracts/built-in-roles-root.rst
838
806
839
- .. versionchanged:: 3.4
840
-
841
- The :authrole:`root` role includes privileges from the
842
- :authrole:`backup` and :authrole:`restore` roles.
843
-
844
807
.. versionchanged:: 6.0
845
808
846
809
The :authrole:`root` role includes :authaction:`find` and
0 commit comments