Skip to content

Commit 2893122

Browse files
jeff-allen-mongokay-kim
authored andcommitted
DOCS-10904 - Quickfix
1 parent 48f95ce commit 2893122

File tree

3 files changed

+48
-13
lines changed

3 files changed

+48
-13
lines changed

source/reference/built-in-roles.txt

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ Every database includes the following database administration roles:
160160
- :authaction:`dropUser`
161161
- :authaction:`grantRole`
162162
- :authaction:`revokeRole`
163+
- :authaction:`setAuthenticationRestriction`
163164
- :authaction:`viewRole`
164165
- :authaction:`viewUser`
165166

@@ -253,11 +254,11 @@ functions.
253254
| :authaction:`update`
254255

255256
* - | :data:`system.indexes <<database>.system.indexes>`,
256-
257+
257258
| :data:`system.js <<database>.system.js>`,
258-
259+
259260
| :data:`system.namespaces <<database>.system.namespaces>` collections
260-
261+
261262
- | :authaction:`collStats`
262263
| :authaction:`dbHash`
263264
| :authaction:`dbStats`
@@ -285,7 +286,7 @@ functions.
285286
- :authaction:`splitChunk`
286287
- :authaction:`splitVector`
287288
- :authaction:`update`
288-
289+
289290
* - :data:`system.replset <local.system.replset>` collection
290291

291292
- - :authaction:`collStats`
@@ -460,12 +461,12 @@ restoring data:
460461

461462
Provides the :authaction:`insert` and :authaction:`update` actions
462463
on the
463-
``mms.backup`` collection in the ``admin`` database and on the
464+
``mms.backup`` collection in the ``admin`` database and on the
464465
:data:`settings <config.settings>` collection in the ``config`` database.
465466

466467
On :ref:`anyResource`, provides the
467-
468-
- :authaction:`listDatabases` action
468+
469+
- :authaction:`listDatabases` action
469470
- :authaction:`listCollections` action
470471
- :authaction:`listIndexes` action
471472

@@ -487,7 +488,7 @@ restoring data:
487488
:data:`system.profile <<database>.system.profile>`
488489

489490
- the :data:`admin.system.users` and :data:`admin.system.roles` collections
490-
491+
491492
- the :data:`config.settings` collection
492493

493494
- legacy ``system.users`` collections from versions of MongoDB prior to 2.6
@@ -533,8 +534,8 @@ restoring data:
533534

534535
Provides the following action on the cluster as a whole:
535536

536-
- :authaction:`getParameter`
537-
537+
- :authaction:`getParameter`
538+
538539
Provides the following actions on all *non*-system collections:
539540

540541
- :authaction:`bypassDocumentValidation`
@@ -566,7 +567,7 @@ restoring data:
566567

567568
Provides the following action on :ref:`anyResource`:
568569

569-
- :authaction:`listCollections`
570+
- :authaction:`listCollections`
570571

571572
Provides the :authaction:`find` action on all the :data:`system.namespaces
572573
<<database>.system.namespaces>` collections in the cluster.
@@ -700,7 +701,7 @@ and are roughly equivalent to their single-database equivalents:
700701

701702
Prior to 3.4, :authrole:`userAdminAnyDatabase` includes ``local``
702703
and ``config`` databases.
703-
704+
704705
.. authrole:: dbAdminAnyDatabase
705706

706707
Provides the same access to database administration operations as
@@ -753,7 +754,7 @@ The following role provides full privileges on all resources:
753754
The :authrole:`root` has :authaction:`validate` action on
754755
``system.`` collections. Previously, :authrole:`root` does
755756
**not** include any access to collections that begin with the
756-
``system.`` prefix other than ``system.indexes`` and
757+
``system.`` prefix other than ``system.indexes`` and
757758
``system.namespaces``.
758759

759760
The :authrole:`root` role includes privileges from the :authrole:`restore` role.

source/reference/command/createUser.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Roles
4747

4848
.. include:: /includes/fact-roles-array-contents.rst
4949

50+
.. _create-user-auth-restrictions:
51+
5052
Authentication Restrictions
5153
~~~~~~~~~~~~~~~~~~~~~~~~~~~
5254

source/reference/privilege-actions.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,38 @@ Database Management Actions
233233
User can remove any role from any user from any database in the system.
234234
Apply this action to database resources.
235235

236+
.. authaction:: setAuthenticationRestriction
237+
238+
.. versionadded:: 3.6
239+
240+
User can specify the
241+
:ref:`authenticationRestrictions <create-user-auth-restrictions>`
242+
field in the ``user`` document when running the following commands:
243+
244+
- :doc:`createUser </reference/command/createUser/>`
245+
- :doc:`updateUser </reference/command/updateUser/>`
246+
247+
User can specify the ``authenticationRestrictions`` field in the
248+
``role`` document when running the following commands:
249+
250+
- :doc:`createRole </reference/command/createRole/>`
251+
- :doc:`updateRole </reference/command/updateRole/>`
252+
253+
.. note::
254+
255+
The following built-in roles grant this privilege:
256+
257+
- The :authrole:`userAdmin` role provides this privilege
258+
on the database that the role is assigned.
259+
260+
- The :authrole:`userAdminAnyDatabase` role provides this
261+
privilege on all databases.
262+
263+
Transitively, the :authrole:`restore` and :authrole:`root` roles
264+
also provide this privilege.
265+
266+
Apply this action to database resources.
267+
236268
.. authaction:: unlock
237269

238270
User can perform the :method:`db.fsyncUnlock()` method. Apply this

0 commit comments

Comments
 (0)