|
1 | 1 | The privileges of the following built-in roles no longer apply to the
|
2 | 2 | ``local`` and ``config`` databases:
|
3 | 3 |
|
4 |
| -- :authrole:`readAnyDatabase` |
| 4 | +.. list-table:: |
| 5 | + :widths: 30 70 |
| 6 | + |
| 7 | + * - :authrole:`readAnyDatabase` |
5 | 8 |
|
6 |
| - To provide ``read`` privileges on the ``local`` database, create a |
7 |
| - user in the ``admin`` database with :authrole:`read` role in the |
8 |
| - ``local`` database. See also :authrole:`clusterManager` and |
9 |
| - :authrole:`clusterMonitor` role for access to the ``config`` and |
10 |
| - ``local`` databases. |
| 9 | + - Starting in 3.4, to provide ``read`` privileges on the ``local`` |
| 10 | + database, create a user in the ``admin`` database with |
| 11 | + :authrole:`read` role in the ``local`` database. See also |
| 12 | + :authrole:`clusterManager` and :authrole:`clusterMonitor` role |
| 13 | + for access to the ``config`` and ``local`` databases. |
11 | 14 |
|
12 |
| -- :authrole:`readWriteAnyDatabase` |
| 15 | + * - :authrole:`readWriteAnyDatabase` |
13 | 16 |
|
14 |
| - To provide ``readWrite`` privileges on the ``local`` database, create |
15 |
| - a user in the ``admin`` database with :authrole:`readWrite` role in |
16 |
| - the ``local`` database. See also :authrole:`clusterManager` and |
17 |
| - :authrole:`clusterMonitor` role for access to the ``config`` and |
18 |
| - ``local`` databases. |
19 |
| - |
20 |
| -- :authrole:`userAdminAnyDatabase`, and |
| 17 | + - Starting in 3.4, to provide ``readWrite`` privileges on the |
| 18 | + ``local`` database, create a user in the ``admin`` database with |
| 19 | + :authrole:`readWrite` role in the ``local`` database. See also |
| 20 | + :authrole:`clusterManager` and :authrole:`clusterMonitor` role |
| 21 | + for access to the ``config`` and ``local`` databases. |
| 22 | + |
| 23 | + * - :authrole:`userAdminAnyDatabase` |
| 24 | + - |
| 25 | + |
| 26 | + * - :authrole:`dbAdminAnyDatabase` |
| 27 | + |
| 28 | + - Starting in 3.4, to provide ``dbAdmin`` privileges on the |
| 29 | + ``local`` database, create a user in the ``admin`` database with |
| 30 | + :authrole:`dbAdmin` role in the ``local`` database. See also |
| 31 | + :authrole:`clusterManager` and :authrole:`clusterMonitor` role |
| 32 | + for access to the ``config`` and ``local`` databases. |
| 33 | + |
| 34 | +Correspondingly, the following built-in roles include additional read |
| 35 | +and write privileges on ``local`` and ``config`` databases: |
| 36 | + |
| 37 | +- :authrole:`clusterManager` |
21 | 38 |
|
22 |
| -- :authrole:`dbAdminAnyDatabase` |
| 39 | +- :authrole:`clusterMonitor` |
23 | 40 |
|
24 |
| - To provide ``dbAdmin`` privileges on the ``local`` database, create a |
25 |
| - user in the ``admin`` database with :authrole:`dbAdmin` role in the |
26 |
| - ``local`` database. See also :authrole:`clusterManager` and |
27 |
| - :authrole:`clusterMonitor` role for access to the ``config`` and |
28 |
| - ``local`` databases. |
| 41 | +- :authrole:`backup` |
29 | 42 |
|
30 |
| -Correspondingly, the :authrole:`clusterManager`, |
31 |
| -:authrole:`clusterMonitor`, :authrole:`backup`, and :authrole:`restore` |
32 |
| -roles include additional read and write privileges on ``local`` and |
33 |
| -``config`` databases. |
| 43 | +- :authrole:`restore`. |
0 commit comments