@@ -27,6 +27,34 @@ user. This principle of *access isolation* facilitates access revocation
2727and ongoing user maintenance. To ensure a system of :term:`least
2828privilege`, only grant the minimal set of privileges required to a user.
2929
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+
3058.. _add-user-prereq:
3159
3260Prerequisites
@@ -41,24 +69,85 @@ For routine user creation, you must possess the following permissions:
4169
4270.. include:: /includes/access-create-user.rst
4371
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+
4479.. _create-user-procedure:
4580
4681Procedure
4782---------
4883
4984.. note::
5085
51- The following procedure uses :ref:`authentication-scram`
86+ The following procedures use :ref:`authentication-scram`
5287 authentication. For additional information on other authentication
5388 mechanisms, see :ref:`create-users-examples`.
5489
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+
55145.. include:: /includes/steps/authorization-create-users.rst
56146
57147.. seealso::
58148
59149 :doc:`/tutorial/manage-users-and-roles`
60150
61-
62151.. _create-users-examples:
63152.. _add-new-user:
64153
@@ -154,6 +243,10 @@ access to the ``records`` database:
154243 - :doc:`/tutorial/configure-ldap-sasl-activedirectory`
155244 - :doc:`/tutorial/configure-ldap-sasl-openldap`
156245
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+
157250x.509 Client Certificate Authentication
158251~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
159252
@@ -188,8 +281,17 @@ user with read-only access to the ``records`` database.
188281
189282 - :doc:`/tutorial/configure-x509-client-authentication`
190283
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+
191288Next Steps
192289----------
193290
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