> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

<div className="integrations-table">
  | Parameter  | Description                                                                                                                                                                                                                                |
  | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Password   | Alphanumeric string that authenticates this database user against the database specified.<br />Must be formatted as a RFC 2253 Distinguished Name.<br />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.<br />Example input:<br /><pre><code>\[<br />  \{<br />    "databaseName": "exampleDB",<br />    "roleName": "atlasAdmin"<br />  }<br />]</code></pre> |
  | Username   | Human-readable label that represents the user that authenticates to MongoDB.                                                                                                                                                               |
</div>

## Example Output

```json theme={"dark"}
{
	"awsIAMType": "<string>",
	"databaseName": "<string>",
	"groupId": "<string>",
	"labels": [],
	"ldapAuthType": "<string>",
	"links": [
		{
			"href": "<string>",
			"rel": "<string>"
		}
	],
	"oidcAuthType": "<string>",
	"roles": [
		{
			"collectionName": "<string>",
			"databaseName": "<string>",
			"roleName": "<string>"
		}
	],
	"scopes": [],
	"username": "<string>",
	"x509Type": "<string>"
}
```

## Workflow Library Example

[Create Database User with Mongodb Atlas and Send Results Via Email](https://library.blinkops.com/workflows/create-database-user-with-mongodb-atlas-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-database-user-with-mongodb-atlas-and-send-results-via-email/canvas" />
</div>
