@@ -23,6 +23,34 @@ user. This principle of *access isolation* facilitates access revocation
2323and ongoing user maintenance. To ensure a system of :term:`least
2424privilege`, only grant the minimal set of privileges required to a user.
2525
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+
2654.. _add-user-prereq:
2755
2856Prerequisites
@@ -37,24 +65,85 @@ For routine user creation, you must possess the following permissions:
3765
3866.. include:: /includes/access-create-user.rst
3967
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+
4075.. _create-user-procedure:
4176
4277Procedure
4378---------
4479
4580.. note::
4681
47- The following procedure uses :ref:`authentication-scram`
82+ The following procedures use :ref:`authentication-scram`
4883 authentication. For additional information on other authentication
4984 mechanisms, see :ref:`create-users-examples`.
5085
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+
51141.. include:: /includes/steps/authorization-create-users.rst
52142
53143.. seealso::
54144
55145 :doc:`/tutorial/manage-users-and-roles`
56146
57-
58147.. _create-users-examples:
59148.. _add-new-user:
60149
@@ -150,6 +239,10 @@ access to the ``records`` database:
150239 - :doc:`/tutorial/configure-ldap-sasl-activedirectory`
151240 - :doc:`/tutorial/configure-ldap-sasl-openldap`
152241
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+
153246x.509 Client Certificate Authentication
154247~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
155248
@@ -184,8 +277,17 @@ user with read-only access to the ``records`` database.
184277
185278 - :doc:`/tutorial/configure-x509-client-authentication`
186279
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+
187284Next Steps
188285----------
189286
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