Skip to content

edits to user privileges docs #1373

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
8 changes: 4 additions & 4 deletions source/reference/roles-collection.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ schema:
role: "<role name>",
db: "<database>",
privileges: [
{ resource: { db: "<database>", collection: "<collection>" | cluster: <Boolean> },
{ resource: { db: "<database>", collection: "<collection>" },
actions: [ "<action>", ... ]
},
...
Expand Down Expand Up @@ -69,8 +69,8 @@ A ``system.roles`` document has the following fields:
specifies the resources the role accesses and the actions permitted
on those resources.

A :data:`~admin.system.roles.privileges` array document resembles
one of the following prototype documents.
A :data:`~admin.system.roles.privileges` array document uses one of
the following forms, depending on the resource:

.. code-block:: javascript

Expand All @@ -80,7 +80,7 @@ A ``system.roles`` document has the following fields:

.. code-block:: javascript

{ resource: { db: "<database>", cluster: <Boolean> },
{ resource: { cluster: <Boolean> },
actions: [ "<action>", ... ]
}

Expand Down
3 changes: 2 additions & 1 deletion source/reference/user-privileges.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ User Privileges
.. default-domain:: mongodb

MongoDB uses role-based authorization to give users access to data and
commands. Each role defines specific privileges on specific resources.
commands. Each role defines specific privileges. Each privilege assigns
specific actions on specific resources.

A user assigned a role receives all the privileges of that role. Users
can have multiple roles and can have different roles on different
Expand Down