Skip to content

add info on eval access to the built-in roles document #1537

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
7 changes: 7 additions & 0 deletions source/reference/built-in-roles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -483,5 +483,12 @@ Internal Role
MongoDB assigns this role to user objects that represent cluster members,
such as replica set members and :program:`mongos` instances. The role
entitles its holder to take any action against any object in the database.

**Do not** assign this role to user objects representing applications or
human administrators, other than in exceptional circumstances.

If you need access to all actions on all resources, for example to run
the :dbcommand:`eval` or :dbcommand:`applyOps` commands, do not assign
this role. Instead, create a user-defined role that grants
:authaction:`anyAction` on :ref:`resource-anyresource` and limit that
role only to the user who needs it.