Skip to content

Change language for required access. Remove redundant file. #1420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
20 changes: 10 additions & 10 deletions source/includes/access-create-role.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
To create a role on a database, a user must have access that includes
the :authaction:`createRole` action on that database.
A user must have the :authaction:`createRole` :ref:`action
<security-user-actions>` on a database to create a role on that database.

To grant a privilege to the role, a user must have access that includes the
:authaction:`grantRole` action on the database the privilege
targets. If the privilege targets multiple databases or the
``cluster`` resource , the user must have access that includes the :authaction:`grantRole`
action on the ``admin`` database.
A user must have the :authaction:`grantRole` :ref:`action
<security-user-actions>` on the database that a privilege targets in order
to grant that privilege to a role. If the privilege targets multiple
databases or the ``cluster`` resource , the user must have the
:authaction:`grantRole` action on the ``admin`` database.

To specify roles from which the new role inherits from, a
user must have access that includes the
:authaction:`grantRole` action on the inherited role's database.
A user must have the :authaction:`grantRole` :ref:`action
<security-user-actions>` on a role's database to grant the role to another
role.
10 changes: 6 additions & 4 deletions source/includes/access-create-user.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
To run |local-cmd-name|, a user must have access
that includes the :authaction:`createUser` action on the database.
A user must have :authaction:`createUser` :ref:`action
<security-user-actions>` on a database to create a new user on that
database.

To grant a role to a new user, the user granting the role must have access
that includes the :authaction:`grantRole` action on the role's database.
A user must have the :authaction:`grantRole` :ref:`action
<security-user-actions>` on a role's database to grant the role to another
user.
3 changes: 0 additions & 3 deletions source/includes/access-drop-all-users.rst

This file was deleted.

4 changes: 2 additions & 2 deletions source/includes/access-drop-user.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
To use the |local-cmd-name| a user must have access that includes
the :authaction:`dropUser` action for that database.
A user must have the :authaction:`dropUser` :ref:`action
<security-user-actions>` on a database to drop a user from that database.
4 changes: 2 additions & 2 deletions source/includes/access-grant-roles.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
A user must have privileges that include the :authaction:`grantRole` action on a
database to grant a role on the database.
A user must have the :authaction:`grantRole` :ref:`action
<security-user-actions>` on a database to grant a role on that database.
4 changes: 2 additions & 2 deletions source/includes/access-revoke-roles.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
A user must have privileges that include the :authaction:`revokeRole` action on
a database to revoke a role on that database.
A user must have the :authaction:`revokeRole` :ref:`action
<security-user-actions>` on a database to revoke a role on that database.
5 changes: 3 additions & 2 deletions source/includes/access-roles-info.rst
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
To view role information, a user must have privileges that contain the
:authaction:`viewRole` action on the database where the role exists.
A user must have the :authaction:`viewRole` :ref:`action
<security-user-actions>` on a role's database to view the role's
information.
25 changes: 12 additions & 13 deletions source/includes/access-update-user.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
To update the :data:`~admin.system.users.roles` array, a user must have
access that includes the :authaction:`revokeRole` action on all
databases. To add roles in an update, a user must have access that
includes the :authaction:`grantRole` action on the database where
the role exists.
A user must have access that includes the :authaction:`revokeRole`
:ref:`action <security-user-actions>` on all databases in order to update a
user's :data:`~admin.system.users.roles` array.

A user must have the :authaction:`grantRole` :ref:`action
<security-user-actions>` on a role's database to add the role to a user.

To modify *their own* ``pwd`` or :data:`~admin.system.users.customData`
fields, users must have access that includes the
:authaction:`changeOwnPassword` action and
:authaction:`changeOwnCustomData` action respectively on the
``cluster`` resource.
fields, users must have the :authaction:`changeOwnPassword` and
:authaction:`changeOwnCustomData` :ref:`actions <security-user-actions>`
respectively on the ``cluster`` resource.

To change another user's ``pwd`` or ``customData`` field, a user must
have access that includes the :authaction:`changeAnyPassword` action
and :authaction:`changeAnyCustomData` action respectively on that
user's database.
To change another user's ``pwd`` or ``customData`` field, a user must have
the :authaction:`changeAnyPassword` and :authaction:`changeAnyCustomData`
:ref:`actions <security-user-actions>` respectively on that user's database.
5 changes: 3 additions & 2 deletions source/includes/access-user-info.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Users must have the :authaction:`viewUser` action on another users database
to view that user's credentials.
Users must have the :authaction:`viewUser` :ref:`action
<security-user-actions>` on another user's database to view the other user's
credentials.

Users can view their own information.
2 changes: 1 addition & 1 deletion source/reference/command/dropAllUsersFromDatabase.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Required Access

.. |local-cmd-name| replace:: :command:`dropAllUsersFromDatabase`

.. include:: /includes/access-drop-all-users.rst
.. include:: /includes/access-drop-user.rst

Example
-------
Expand Down
2 changes: 1 addition & 1 deletion source/reference/method/db.dropAllUsers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Definition
Required Access
---------------

.. include:: /includes/access-drop-all-users.rst
.. include:: /includes/access-drop-user.rst

Example
-------
Expand Down