File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,8 @@ Definition
18
18
.. versionadded:: 3.2
19
19
20
20
Returns statistics regarding the use of each index for the
21
- collection. If running with :doc:`access control
22
- </core/authorization>`, the user must have privileges that include
23
- :authaction:`indexStats` action.
21
+ collection. If running with :ref:`access control <authorization>`,
22
+ authenticate as a user with at least the :authrole:`clusterMonitor` role.
24
23
25
24
The :pipeline:`$indexStats` stage takes an empty document and has
26
25
the following syntax:
Original file line number Diff line number Diff line change @@ -770,12 +770,12 @@ Diagnostic Actions
770
770
771
771
.. authaction:: indexStats
772
772
773
- User can perform the ``indexStats`` command. Apply this action
774
- to database or collection resources.
775
-
776
- .. versionchanged:: 3.0
777
- MongoDB 3.0 removes the ``indexStats`` command.
773
+ User can run the :pipeline:`$indexStats` aggregation pipeline stage. Apply
774
+ this action to database or collection resources.
778
775
776
+ To use the ``$indexStats`` stage, users must authenticate with at least the
777
+ :authrole:`clusterMonitor` role.
778
+
779
779
.. authaction:: listDatabases
780
780
781
781
User can perform the :dbcommand:`listDatabases` command. Apply this
You can’t perform that action at this time.
0 commit comments