@@ -27,6 +27,34 @@ user. This principle of *access isolation* facilitates access revocation
27
27
and ongoing user maintenance. To ensure a system of :term:`least
28
28
privilege`, only grant the minimal set of privileges required to a user.
29
29
30
+ The user information on this page applies to deployments hosted in
31
+ all of the following environments unless specified otherwise:
32
+
33
+ .. include:: /includes/fact-environments.rst
34
+
35
+ {+atlas+} Limitations
36
+ ------------------------------
37
+
38
+ The following limitations apply only to deployments hosted in
39
+ {+atlas+}. If any of these limits present a problem for your organization,
40
+ contact :atlas:`Atlas support </support>`.
41
+
42
+ * The available {+atlas+} :atlas:`built-in roles </security-add-mongodb-users/#std-label-atlas-user-privileges>`
43
+ and :atlas:`specific privileges </security-add-mongodb-users/#std-label-atlas-specific-privileges>`
44
+ support a subset of MongoDB commands.
45
+ See :atlas:`Unsupported Commands in M10+ Clusters </unsupported-commands/#std-label-paid-tier-command-limitations>`
46
+ for more information.
47
+
48
+ * {+atlas+} supports a maximum of 100 database users per {+atlas+}
49
+ project. If you require more than 100 database users on a project,
50
+ contact :atlas:`Atlas support </support>`.
51
+
52
+ * You must use the :atlas:`Atlas CLI </cli/stable/command/atlas-dbusers-create>`,
53
+ :atlas:`Atlas Administration API </reference/api-resources-spec/v2/#tag/Database-Users>`,
54
+ Atlas UI, or a supported :atlas:`integration </partner-integrations/#std-label-partner-integrations>`
55
+ to add, modify, or delete database users on {+atlas+} database deployments.
56
+ Otherwise, {+atlas+} rolls back any user modifications.
57
+
30
58
.. _add-user-prereq:
31
59
32
60
Prerequisites
@@ -41,24 +69,85 @@ For routine user creation, you must possess the following permissions:
41
69
42
70
.. include:: /includes/access-create-user.rst
43
71
72
+ To create users for {+atlas+}, you must have
73
+ :atlas:`Organization Owner </reference/user-roles/#mongodb-authrole-Organization-Owner>`
74
+ or :atlas:`Project Owner </reference/user-roles/#mongodb-authrole-Project-Owner>`
75
+ access to {+atlas+}. These roles are unique to {+atlas+} and are
76
+ separate from database users.
77
+ To learn more, see :atlas:`Atlas User Roles </reference/user-roles>`.
78
+
44
79
.. _create-user-procedure:
45
80
46
81
Procedure
47
82
---------
48
83
49
84
.. note::
50
85
51
- The following procedure uses :ref:`authentication-scram`
86
+ The following procedures use :ref:`authentication-scram`
52
87
authentication. For additional information on other authentication
53
88
mechanisms, see :ref:`create-users-examples`.
54
89
90
+ Configure Database Users for {+atlas+}
91
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92
+
93
+ A {+atlas+} project can have users with different authentication methods.
94
+
95
+ You cannot change a user's authentication method after creating that
96
+ user. To use an alternative authentication method, you must create a
97
+ new user.
98
+
99
+ Configure database users for your {+atlas+} deployment who
100
+ use :ref:`authentication-scram` authentication:
101
+
102
+ .. tabs::
103
+
104
+ .. tab:: Atlas CLI
105
+ :tabid: cli
106
+
107
+ The Atlas CLI uses the following commands to create new database users and
108
+ X.509 certificates. The options you specify determine the authentication method.
109
+
110
+ To create a database user for your project using the Atlas CLI,
111
+ run the following command:
112
+
113
+ .. code-block:: sh
114
+
115
+ atlas dbusers create [builtInRole]... [options]
116
+
117
+ To create a new Atlas-managed X.509 certificate for the specified
118
+ database user using the Atlas CLI, run the following command:
119
+
120
+ .. code-block:: sh
121
+
122
+ atlas dbusers certs create [options]
123
+
124
+ To learn more about the syntax and parameters for the previous commands,
125
+ see the Atlas CLI documentation for
126
+ :atlas:`atlas dbusers create </cli/stable/command/atlas-dbusers-create>` and
127
+ :atlas:`atlas dbusers certs create </cli/stable/command/atlas-dbusers-certs-create>`.
128
+
129
+ .. see:: Related Links
130
+
131
+ - :atlas:`Install the Atlas CLI </cli/stable/install-atlas-cli>`
132
+ - :atlas:`Connect to the Atlas CLI </cli/stable/connect-atlas-cli>`
133
+
134
+ .. tab:: Atlas UI
135
+ :tabid: ui
136
+
137
+ .. include:: /includes/steps/add-scram-user.rst
138
+
139
+ Configure Users for Self-Hosted Deployments
140
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
141
+
142
+ To configure database users for your self-hosted MongoDB Enterprise
143
+ or MongoDB Community deployment, follow these steps:
144
+
55
145
.. include:: /includes/steps/authorization-create-users.rst
56
146
57
147
.. seealso::
58
148
59
149
:doc:`/tutorial/manage-users-and-roles`
60
150
61
-
62
151
.. _create-users-examples:
63
152
.. _add-new-user:
64
153
@@ -154,6 +243,10 @@ access to the ``records`` database:
154
243
- :doc:`/tutorial/configure-ldap-sasl-activedirectory`
155
244
- :doc:`/tutorial/configure-ldap-sasl-openldap`
156
245
246
+ To learn more about setting up LDAP authentication for {+atlas+},
247
+ see :atlas:`Add Database Users</security-add-mongodb-users/#add-database-users>`
248
+ in the {+atlas+} documentation.
249
+
157
250
x.509 Client Certificate Authentication
158
251
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
159
252
@@ -188,8 +281,17 @@ user with read-only access to the ``records`` database.
188
281
189
282
- :doc:`/tutorial/configure-x509-client-authentication`
190
283
284
+ To learn more about setting up x.509 Client Certificate authentication for {+atlas+},
285
+ see :atlas:`Add Database Users</security-add-mongodb-users/#add-database-users>`
286
+ in the {+atlas+} documentation.
287
+
191
288
Next Steps
192
289
----------
193
290
194
- To manage users, assign roles, and create custom roles, see
195
- :doc:`/tutorial/manage-users-and-roles`.
291
+ To manage users, assign roles, and create custom roles for your
292
+ self-hosted MongoDB Enterprise or MongoDB Community deployment,
293
+ see :doc:`/tutorial/manage-users-and-roles`.
294
+
295
+ You can also :atlas:`manage users, assign roles </security-add-mongodb-users>`,
296
+ and :atlas:`create custom roles </security-add-mongodb-roles>`
297
+ for your {+atlas+} deployment.
0 commit comments