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