Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions source/reference/built-in-roles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ Every database includes the following database administration roles:
- :authaction:`dropUser`
- :authaction:`grantRole`
- :authaction:`revokeRole`
- :authaction:`setAuthenticationRestriction`
- :authaction:`viewRole`
- :authaction:`viewUser`

Expand Down Expand Up @@ -253,11 +254,11 @@ functions.
| :authaction:`update`

* - | :data:`system.indexes <<database>.system.indexes>`,

| :data:`system.js <<database>.system.js>`,

| :data:`system.namespaces <<database>.system.namespaces>` collections

- | :authaction:`collStats`
| :authaction:`dbHash`
| :authaction:`dbStats`
Expand Down Expand Up @@ -285,7 +286,7 @@ functions.
- :authaction:`splitChunk`
- :authaction:`splitVector`
- :authaction:`update`

* - :data:`system.replset <local.system.replset>` collection

- - :authaction:`collStats`
Expand Down Expand Up @@ -460,12 +461,12 @@ restoring data:

Provides the :authaction:`insert` and :authaction:`update` actions
on the
``mms.backup`` collection in the ``admin`` database and on the
``mms.backup`` collection in the ``admin`` database and on the
:data:`settings <config.settings>` collection in the ``config`` database.

On :ref:`anyResource`, provides the
- :authaction:`listDatabases` action

- :authaction:`listDatabases` action
- :authaction:`listCollections` action
- :authaction:`listIndexes` action

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

- the :data:`admin.system.users` and :data:`admin.system.roles` collections

- the :data:`config.settings` collection

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

Provides the following action on the cluster as a whole:

- :authaction:`getParameter`
- :authaction:`getParameter`

Provides the following actions on all *non*-system collections:

- :authaction:`bypassDocumentValidation`
Expand Down Expand Up @@ -566,7 +567,7 @@ restoring data:

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

- :authaction:`listCollections`
- :authaction:`listCollections`

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

Prior to 3.4, :authrole:`userAdminAnyDatabase` includes ``local``
and ``config`` databases.

.. authrole:: dbAdminAnyDatabase

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

The :authrole:`root` role includes privileges from the :authrole:`restore` role.
Expand Down
2 changes: 2 additions & 0 deletions source/reference/command/createUser.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Roles

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

.. _create-user-auth-restrictions:

Authentication Restrictions
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
32 changes: 32 additions & 0 deletions source/reference/privilege-actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,38 @@ Database Management Actions
User can remove any role from any user from any database in the system.
Apply this action to database resources.

.. authaction:: setAuthenticationRestriction

.. versionadded:: 3.6

User can specify the
:ref:`authenticationRestrictions <create-user-auth-restrictions>`
field in the ``user`` document when running the following commands:

- :doc:`createUser </reference/command/createUser/>`
- :doc:`updateUser </reference/command/updateUser/>`

User can specify the ``authenticationRestrictions`` field in the
``role`` document when running the following commands:

- :doc:`createRole </reference/command/createRole/>`
- :doc:`updateRole </reference/command/updateRole/>`

.. note::

The following built-in roles grant this privilege:

- The :authrole:`userAdmin` role provides this privilege
on the database that the role is assigned.

- The :authrole:`userAdminAnyDatabase` role provides this
privilege on all databases.

Transitively, the :authrole:`restore` and :authrole:`root` roles
also provide this privilege.

Apply this action to database resources.

.. authaction:: unlock

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