Get Database User
Returns one database user that belong to the specified project. To use this resource, the requesting API Key must have the Project Read Only role. This resource does not require the API Key to have an Access List.
Parameters
Parameter | Description |
---|---|
Project ID | Unique 24 hexadecimal-digit string that identifies your project. Can be retrieved using "Return All Projects". |
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": "myUser",
"x509Type": "NONE"
}
Workflow Library Example
Get Database User with Mongodb Atlas and Send Results Via Email
Preview this Workflow on desktop