Skip to content

Commit 07c5b5a

Browse files
authored
DOCSP-28029 Note on Role Prevelance (#2746) (#3104)
* DOCSP-28029 Adds note on role prevalence * Fixes note * Fixes per Jeff * Fixes per Jeff * Fixes per Spencer Jackson * Fixes per Spencer Jackson * Fixes per Spencer Jackson * Fixes per Ashley
1 parent 976bbe1 commit 07c5b5a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

source/core/authorization.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,28 @@ A role grants privileges to perform the specified :ref:`actions
3939
</reference/resource-document>`. Each privilege is either specified
4040
explicitly in the role or inherited from another role or both.
4141

42+
Access
43+
~~~~~~
44+
45+
Roles never limit privileges. If a user has two roles, the role with the
46+
greater access takes precedence.
47+
48+
For example, if you grant the :authrole:`read` role on a database to
49+
a user that already has the :authrole:`readWriteAnyDatabase` role, the
50+
``read`` grant does **not** revoke write access on the database.
51+
52+
To revoke a role from a user, use the :dbcommand:`revokeRolesFromUser`
53+
command.
54+
55+
Authentication Restrictions
56+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
57+
58+
Roles can impose authentication restrictions on users, requiring them to
59+
connect from specified source and destination IP address ranges.
60+
61+
For more information, see :ref:`create-role-auth-restrictions`.
62+
63+
4264
.. _privileges:
4365

4466
Privileges

0 commit comments

Comments
 (0)