@@ -17,6 +17,34 @@ Overview
1717
1818.. include:: /includes/intro-rbac.rst
1919
20+ The user information on this page applies to deployments hosted in
21+ all of the following environments unless specified otherwise:
22+
23+ .. include:: /includes/fact-environments.rst
24+
25+ {+atlas+} Limitations
26+ ------------------------------
27+
28+ The following limitations apply only to deployments hosted in
29+ {+atlas+}. If any of these limits present a problem for your organization,
30+ contact :atlas:`Atlas support </support>`.
31+
32+ * The available {+atlas+} :atlas:`built-in roles </security-add-mongodb-users/#std-label-atlas-user-privileges>`
33+ and :atlas:`specific privileges </security-add-mongodb-users/#std-label-atlas-specific-privileges>`
34+ support a subset of MongoDB commands.
35+ See :atlas:`Unsupported Commands in M10+ Clusters </unsupported-commands/#std-label-paid-tier-command-limitations>`
36+ for more information.
37+
38+ * {+atlas+} supports a maximum of 100 database users per {+atlas+}
39+ project. If you require more than 100 database users on a project,
40+ contact :atlas:`Atlas support </support>`.
41+
42+ * You must use the :atlas:`Atlas CLI </cli/stable/command/atlas-dbusers-create>`,
43+ :atlas:`Atlas Administration API </reference/api-resources-spec/v2/#tag/Database-Users>`,
44+ Atlas UI, or a supported :atlas:`integration </partner-integrations/#std-label-partner-integrations>`
45+ to add, modify, or delete database users on {+atlas+} database deployments.
46+ Otherwise, {+atlas+} rolls back any user modifications.
47+
2048.. _add-user-prereq:
2149
2250Prerequisites
@@ -35,7 +63,75 @@ For routine user creation, you must possess the following permissions:
3563
3664.. include:: /includes/access-create-user.rst
3765
66+ To create users for {+atlas+}, you must have
67+ :atlas:`Organization Owner </reference/user-roles/#mongodb-authrole-Organization-Owner>`
68+ or :atlas:`Project Owner </reference/user-roles/#mongodb-authrole-Project-Owner>`
69+ access to {+atlas+}. These roles are unique to {+atlas+} and are
70+ separate from database users.
71+ To learn more, see :atlas:`Atlas User Roles </reference/user-roles>`.
72+
3873.. _add-new-user:
74+ .. _create-user-procedure:
75+
76+ Procedure
77+ ---------
78+
79+ .. note::
80+
81+ The following procedures use :ref:`authentication-scram`
82+ authentication. For additional information on other authentication
83+ mechanisms, see :ref:`create-users-examples`.
84+
85+ Configure Database Users for {+atlas+}
86+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
87+
88+ A {+atlas+} project can have users with different authentication methods.
89+
90+ You cannot change a user's authentication method after creating that
91+ user. To use an alternative authentication method, you must create a
92+ new user.
93+
94+ Configure database users for your {+atlas+} deployment who
95+ use :ref:`authentication-scram` authentication:
96+
97+ .. tabs::
98+
99+ .. tab:: Atlas CLI
100+ :tabid: cli
101+
102+ The Atlas CLI uses the following commands to create new database users and
103+ X.509 certificates. The options you specify determine the authentication method.
104+
105+ To create a database user for your project using the Atlas CLI,
106+ run the following command:
107+
108+ .. code-block:: sh
109+
110+ atlas dbusers create [builtInRole]... [options]
111+
112+ To create a new Atlas-managed X.509 certificate for the specified
113+ database user using the Atlas CLI, run the following command:
114+
115+ .. code-block:: sh
116+
117+ atlas dbusers certs create [options]
118+
119+ To learn more about the syntax and parameters for the previous commands,
120+ see the Atlas CLI documentation for
121+ :atlas:`atlas dbusers create </cli/stable/command/atlas-dbusers-create>` and
122+ :atlas:`atlas dbusers certs create </cli/stable/command/atlas-dbusers-certs-create>`.
123+
124+ .. see:: Related Links
125+
126+ - :atlas:`Install the Atlas CLI </cli/stable/install-atlas-cli>`
127+ - :atlas:`Connect to the Atlas CLI </cli/stable/connect-atlas-cli>`
128+
129+ .. tab:: Atlas UI
130+ :tabid: ui
131+
132+ .. include:: /includes/steps/add-scram-user.rst
133+
134+ .. _create-users-examples:
39135
40136Examples
41137--------
@@ -128,6 +224,10 @@ with read-only access to the ``records`` database.
128224:doc:`/tutorial/configure-ldap-sasl-openldap` provide more detail about
129225using authenticating using LDAP.
130226
227+ To learn more about setting up LDAP authentication for {+atlas+},
228+ see :atlas:`Add Database Users</security-add-mongodb-users/#add-database-users>`
229+ in the {+atlas+} documentation.
230+
131231x.509 Client Certificate Authentication
132232~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133233
@@ -154,6 +254,25 @@ user with read-only access to the ``records`` database.
154254 }
155255 )
156256
157- :doc:`/tutorial/configure-x509-client-authentication` provides details
158- about setting up x.509 Client Certificate authentication for your
159- MongoDB deployment.
257+ .. seealso::
258+
259+ For more information about setting up x.509 Client Certificate
260+ authentication for your MongoDB deployment, see the following
261+ tutorials:
262+
263+ - :doc:`/tutorial/configure-x509-client-authentication`
264+
265+ To learn more about setting up x.509 Client Certificate authentication for {+atlas+},
266+ see :atlas:`Add Database Users</security-add-mongodb-users/#add-database-users>`
267+ in the {+atlas+} documentation.
268+
269+ Next Steps
270+ ----------
271+
272+ To manage users, assign roles, and create custom roles for your
273+ self-hosted MongoDB Enterprise or MongoDB Community deployment,
274+ see :doc:`/tutorial/manage-users-and-roles`.
275+
276+ You can also :atlas:`manage users, assign roles </security-add-mongodb-users>`,
277+ and :atlas:`create custom roles </security-add-mongodb-roles>`
278+ for your {+atlas+} deployment.
0 commit comments