{
"opencollection": "1.0.0",
"info": {
"name": "MongoDB Atlas Administration Access Tracking Database Users API",
"version": "2.0"
},
"request": {
"auth": {
"type": "oauth2",
"flow": "client_credentials",
"accessTokenUrl": "https://cloud.mongodb.com/api/oauth/token",
"credentials": {
"clientId": "{{clientId}}",
"clientSecret": "{{clientSecret}}"
}
}
},
"items": [
{
"info": {
"name": "Database Users",
"type": "folder"
},
"items": [
{
"info": {
"name": "Return All Database Users in One Project",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://cloud.mongodb.com/api/atlas/v2/groups/:groupId/databaseUsers",
"params": [
{
"name": "envelope",
"value": "",
"type": "query",
"description": "Flag that indicates whether Application wraps the response in an `envelope` JSON object. Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. Endpoints that return a list of results use the results object as an envelope. Application adds the status parameter to the response body."
},
{
"name": "groupId",
"value": "",
"type": "path",
"description": "Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access.\n\n**NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups."
},
{
"name": "includeCount",
"value": "",
"type": "query",
"description": "Flag that indicates whether the response returns the total number of items (`totalCount`) in the response."
},
{
"name": "itemsPerPage",
"value": "",
"type": "query",
"description": "Number of items that the response returns per page."
},
{
"name": "pageNum",
"value": "",
"type": "query",
"description": "Number of the page that displays the current set of the total objects that the response returns."
},
{
"name": "pretty",
"value": "",
"type": "query",
"description": "Flag that indicates whether the response body should be in the prettyprint format."
}
]
},
"docs": "Returns all database users that belong to the specified project. To use this resource, the requesting Service Account or API Key must have the Project Read Only role."
},
{
"info": {
"name": "Create One Database User in One Project",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://cloud.mongodb.com/api/atlas/v2/groups/:groupId/databaseUsers",
"params": [
{
"name": "envelope",
"value": "",
"type": "query",
"description": "Flag that indicates whether Application wraps the response in an `envelope` JSON object. Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. Endpoints that return a list of results use the results object as an envelope. Application adds the status parameter to the response body."
},
{
"name": "groupId",
"value": "",
"type": "path",
"description": "Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access.\n\n**NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups."
},
{
"name": "pretty",
"value": "",
"type": "query",
"description": "Flag that indicates whether the response body should be in the prettyprint format."
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "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 Service Account or API Key must have the Project Owner role, the Project Charts Admin role, Project Stream Processing Owner role, or the Project Database Access Admin role."
},
{
"info": {
"name": "Return One Database User from One Project",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://cloud.mongodb.com/api/atlas/v2/groups/:groupId/databaseUsers/:databaseName/:username",
"params": [
{
"name": "envelope",
"value": "",
"type": "query",
"description": "Flag that indicates whether Application wraps the response in an `envelope` JSON object. Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. Endpoints that return a list of results use the results object as an envelope. Application adds the status parameter to the response body."
},
{
"name": "groupId",
"value": "",
"type": "path",
"description": "Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access.\n\n**NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups."
},
{
"name": "pretty",
"value": "",
"type": "query",
"description": "Flag that indicates whether the response body should be in the prettyprint format."
},
{
"name": "databaseName",
"value": "",
"type": "path",
"description": "The database against which the database user authenticates. Database users must provide both a username and authentication database to log into MongoDB. If the user authenticates with AWS IAM, x.509, LDAP, or OIDC Workload this value should be `$external`. If the user authenticates with SCRAM-SHA or OIDC Workforce, this value should be `admin`."
},
{
"name": "username",
"value": "",
"type": "path",
"description": "Human-readable label that represents the user that authenticates to MongoDB. The format of this label depends on the method of authentication:\n\n| Authentication Method | Parameter Needed | Parameter Value | username Format |\n|---|---|---|---|\n| AWS IAM | `awsIAMType` | `ROLE` | ARN |\n| AWS IAM | `awsIAMType` | `USER` | ARN |\n| x.509 | `x509Type` | `CUSTOMER` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| x.509 | `x509Type` | `MANAGED` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| LDAP | `ldapAuthType` | `USER` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| LDAP | `ldapAuthType` | `GROUP` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| OIDC Workforce | `oidcAuthType` | `IDP_GROUP` | Atlas OIDC IdP ID (found in federation settings), followed by a '/', followed by the IdP group name |\n| OIDC Workload | `oidcAuthType` | `USER` | Atlas OIDC IdP ID (found in federation settings), followed by a '/', followed by the IdP user name |\n| SCRAM-SHA | `awsIAMType`, `x509Type`, `ldapAuthType`, `oidcAuthType` | `NONE` | Alphanumeric string |\n"
}
]
},
"docs": "Returns one database user that belong to the specified project. To use this resource, the requesting Service Account or API Key must have the Project Read Only role."
},
{
"info": {
"name": "Update One Database User in One Project",
"type": "http"
},
"http": {
"method": "PATCH",
"url": "https://cloud.mongodb.com/api/atlas/v2/groups/:groupId/databaseUsers/:databaseName/:username",
"params": [
{
"name": "envelope",
"value": "",
"type": "query",
"description": "Flag that indicates whether Application wraps the response in an `envelope` JSON object. Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. Endpoints that return a list of results use the results object as an envelope. Application adds the status parameter to the response body."
},
{
"name": "groupId",
"value": "",
"type": "path",
"description": "Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access.\n\n**NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups."
},
{
"name": "pretty",
"value": "",
"type": "query",
"description": "Flag that indicates whether the response body should be in the prettyprint format."
},
{
"name": "databaseName",
"value": "",
"type": "path",
"description": "The database against which the database user authenticates. Database users must provide both a username and authentication database to log into MongoDB. If the user authenticates with AWS IAM, x.509, LDAP, or OIDC Workload this value should be `$external`. If the user authenticates with SCRAM-SHA or OIDC Workforce, this value should be `admin`."
},
{
"name": "username",
"value": "",
"type": "path",
"description": "Human-readable label that represents the user that authenticates to MongoDB. The format of this label depends on the method of authentication:\n\n| Authentication Method | Parameter Needed | Parameter Value | username Format |\n|---|---|---|---|\n| AWS IAM | `awsIAMType` | `ROLE` | ARN |\n| AWS IAM | `awsIAMType` | `USER` | ARN |\n| x.509 | `x509Type` | `CUSTOMER` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| x.509 | `x509Type` | `MANAGED` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| LDAP | `ldapAuthType` | `USER` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| LDAP | `ldapAuthType` | `GROUP` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| OIDC Workforce | `oidcAuthType` | `IDP_GROUP` | Atlas OIDC IdP ID (found in federation settings), followed by a '/', followed by the IdP group name |\n| OIDC Workload | `oidcAuthType` | `USER` | Atlas OIDC IdP ID (found in federation settings), followed by a '/', followed by the IdP user name |\n| SCRAM-SHA | `awsIAMType`, `x509Type`, `ldapAuthType`, `oidcAuthType` | `NONE` | Alphanumeric string |\n"
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Updates one database user that belongs to the specified project. To use this resource, the requesting Service Account or API Key must have the Project Owner role, Project Charts Admin role, Project Stream Processing Owner role, or the Project Database Access Admin role."
},
{
"info": {
"name": "Remove One Database User from One Project",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://cloud.mongodb.com/api/atlas/v2/groups/:groupId/databaseUsers/:databaseName/:username",
"params": [
{
"name": "envelope",
"value": "",
"type": "query",
"description": "Flag that indicates whether Application wraps the response in an `envelope` JSON object. Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. Endpoints that return a list of results use the results object as an envelope. Application adds the status parameter to the response body."
},
{
"name": "groupId",
"value": "",
"type": "path",
"description": "Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access.\n\n**NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups."
},
{
"name": "pretty",
"value": "",
"type": "query",
"description": "Flag that indicates whether the response body should be in the prettyprint format."
},
{
"name": "databaseName",
"value": "",
"type": "path",
"description": "The database against which the database user authenticates. Database users must provide both a username and authentication database to log into MongoDB. If the user authenticates with AWS IAM, x.509, LDAP, or OIDC Workload this value should be `$external`. If the user authenticates with SCRAM-SHA or OIDC Workforce, this value should be `admin`."
},
{
"name": "username",
"value": "",
"type": "path",
"description": "Human-readable label that represents the user that authenticates to MongoDB. The format of this label depends on the method of authentication:\n\n| Authentication Method | Parameter Needed | Parameter Value | username Format |\n|---|---|---|---|\n| AWS IAM | `awsIAMType` | `ROLE` | ARN |\n| AWS IAM | `awsIAMType` | `USER` | ARN |\n| x.509 | `x509Type` | `CUSTOMER` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| x.509 | `x509Type` | `MANAGED` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| LDAP | `ldapAuthType` | `USER` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| LDAP | `ldapAuthType` | `GROUP` | [RFC 2253](https://tools.ietf.org/html/2253) Distinguished Name |\n| OIDC Workforce | `oidcAuthType` | `IDP_GROUP` | Atlas OIDC IdP ID (found in federation settings), followed by a '/', followed by the IdP group name |\n| OIDC Workload | `oidcAuthType` | `USER` | Atlas OIDC IdP ID (found in federation settings), followed by a '/', followed by the IdP user name |\n| SCRAM-SHA | `awsIAMType`, `x509Type`, `ldapAuthType`, `oidcAuthType` | `NONE` | Alphanumeric string |\n"
}
]
},
"docs": "Removes one database user from the specified project. To use this resource, the requesting Service Account or API Key must have the Project Owner role, the Project Stream Processing Owner role, or the Project Database Access Admin role."
}
]
}
],
"bundled": true
}