Create Database User
Creates one database user in the specified project. This MongoDB Cloud supports a maximum of 100 database users per project. If you require more than 100 database users on a project, contact Support. To use this resource, the requesting API Key must have the Project Atlas Admin or Project Charts Admin roles. This resource does not require the API Key to have an Access List.
Parameters
Parameter | Description |
---|---|
Password | Alphanumeric string that authenticates this database user against the database specified. Must be formatted as a RFC 2253 Distinguished Name. Minimum 8 characters. |
Project ID | Unique 24 hexadecimal-digit string that identifies your project. Can be retrieved using "Return All Projects". |
Roles | List of objects that provides the pairings of one role with one applicable database. Example input: [ { "databaseName": "exampleDB", "roleName": "atlasAdmin" } ] |
Username | Human-readable label that represents the user that authenticates to MongoDB. |
Example Output
{
"awsIAMType": "NONE",
"databaseName": "exampleDB",
"groupId": "32b6e34b3d91647abb20e7b8",
"labels": [],
"ldapAuthType": "NONE",
"links": [
{
"href": "https://mms.mongodb.com/api/atlas/v1.0/groups/{groupId}/serverless/{instanceName1}/backup/snapshots",
"rel": "https://mms.mongodb.com/snapshots"
}
],
"roles": [
{
"databaseName": "exampleDB",
"roleName": "atlasAdmin"
}
],
"scopes": [],
"username": "myNewUser",
"x509Type": "NONE"
}
Workflow Library Example
Create Database User with Mongodb Atlas and Send Results Via Email
Preview this Workflow on desktop