Skip to main content

Update Database User

Updates one database user that belongs to the specified project. 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

ParameterDescription
Project IDUnique 24 hexadecimal-digit string that identifies your project. Can be retrieved using "Return All Projects".
RolesList that provides the pairings of one role with one applicable database.
Example input:
[
{
"databaseName": "exampleDB",
"roleName": "readAnyDatabase"
}
]
UsernameHuman-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": "readAnyDatabase"
}
],
"scopes": [],
"username": "myUser",
"x509Type": "NONE"
}

Workflow Library Example

Update Database User with Mongodb Atlas and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop