Skip to content

updates to privilege actions #1632

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
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
22 changes: 10 additions & 12 deletions source/reference/privilege-actions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,6 @@ Database Management Actions

.. todo:: I tried following the code on this but couldn't figure it out.

.. authaction:: planCacheHint

.. todo:: I can't find this in the code. Is the blurb below correct?

User can view and update admin hints. Apply this action to database
or collection resources.

.. authaction:: revokeRole

User can remove any role from any user from any database in the system.
Expand Down Expand Up @@ -372,13 +365,18 @@ Server Administration Actions

Allows the user to rename collections on the current database using the
:dbcommand:`renameCollection` command. Apply this action to database
or collection resources.
resources.

To perform rename collections across databases, a user must have
:authaction:`renameCollectionSameDB` on the cluster resource, and
additionally have the following:

.. todo:: verify this:
- Either *have* :authaction:`find` on the source or *do not* have
:authaction:`find` on either the source or destination, to prevent
circumvention of the permission.

To perform rename collections across databases, a user must have the
:authaction:`createCollection`, :authaction:`dropCollection`, and
:authaction:`find` actions on the cluster resource.
- :authaction:`dropCollection` on the source, if the old collection is
to be dropped.

.. authaction:: repairDatabase

Expand Down