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 @@ -773,12 +773,12 @@ Diagnostic Actions
773
773
774
774
.. authaction:: indexStats
775
775
776
- User can perform the ``indexStats`` command. Apply this action
777
- to database or collection resources.
778
-
779
- .. versionchanged:: 3.0
780
- MongoDB 3.0 removes the ``indexStats`` command.
776
+ User can run the :pipeline:`$indexStats` aggregation pipeline stage. Apply
777
+ this action to database or collection resources.
781
778
779
+ To use the ``$indexStats`` stage, users must authenticate with at least the
780
+ :authrole:`clusterMonitor` role.
781
+
782
782
.. authaction:: listDatabases
783
783
784
784
User can perform the :dbcommand:`listDatabases` command. Apply this
You can’t perform that action at this time.
0 commit comments