Skip to content

Commit b752e9b

Browse files
authored
DOCSP-33240 indexStats Privileges (#5099) (#5109)
* DOCSP-33240 indexStats Privileges * wording * more text edits * ref link * copy edits * extra space * external feedback
1 parent e287b76 commit b752e9b

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

source/reference/operator/aggregation/indexStats.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ Definition
1818
.. versionadded:: 3.2
1919

2020
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.
2423

2524
The :pipeline:`$indexStats` stage takes an empty document and has
2625
the following syntax:

source/reference/privilege-actions.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -770,12 +770,12 @@ Diagnostic Actions
770770

771771
.. authaction:: indexStats
772772

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.
778775

776+
To use the ``$indexStats`` stage, users must authenticate with at least the
777+
:authrole:`clusterMonitor` role.
778+
779779
.. authaction:: listDatabases
780780

781781
User can perform the :dbcommand:`listDatabases` command. Apply this

0 commit comments

Comments
 (0)