Skip to content

Commit c27b707

Browse files
authored
DOCSP-33240 indexStats Privileges (#5099) (#5106)
* DOCSP-33240 indexStats Privileges * wording * more text edits * ref link * copy edits * extra space * external feedback
1 parent 8513d80 commit c27b707

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
@@ -16,9 +16,8 @@ Definition
1616
.. pipeline:: $indexStats
1717

1818
Returns statistics regarding the use of each index for the
19-
collection. If running with :doc:`access control
20-
</core/authorization>`, the user must have privileges that include
21-
:authaction:`indexStats` action.
19+
collection. If running with :ref:`access control <authorization>`,
20+
authenticate as a user with at least the :authrole:`clusterMonitor` role.
2221

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

source/reference/privilege-actions.txt

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

815815
.. authaction:: indexStats
816816

817-
User can perform the ``indexStats`` command. Apply this action
818-
to database or collection resources.
819-
820-
.. versionchanged:: 3.0
821-
MongoDB 3.0 removes the ``indexStats`` command.
817+
User can run the :pipeline:`$indexStats` aggregation pipeline stage. Apply
818+
this action to database or collection resources.
822819

820+
To use the ``$indexStats`` stage, users must authenticate with at least the
821+
:authrole:`clusterMonitor` role.
822+
823823
.. authaction:: listDatabases
824824

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

0 commit comments

Comments
 (0)