MongoDB Atlas Database Users API

The Database Users API from MongoDB Atlas — 2 operation(s) for database users.

Business capability
Identity & Access Management BC-620.20

Operations 4

GET /groups/{groupId}/databaseUsers List database users in a project #
POST /groups/{groupId}/databaseUsers Create a database user #
PATCH /groups/{groupId}/databaseUsers/{username} Update a database user's roles or password #
DELETE /groups/{groupId}/databaseUsers/{username} Delete a database user #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mongodb-atlas-database-users-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mongodb-atlas-database-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MongoDB Atlas Administration Database Users API
  version: v2
  description: 'REST API for programmatically managing MongoDB Atlas organizations,

    projects (groups), clusters, database users, network access, backups,

    alerts, and billing.'
  contact:
    name: MongoDB Atlas
    url: https://www.mongodb.com/docs/atlas/api/atlas-admin-api/
servers:
- url: https://cloud.mongodb.com/api/atlas/v2
  description: MongoDB Atlas Administration API v2
security:
- httpDigest: []
- bearer: []
tags:
- name: Database Users
paths:
  /groups/{groupId}/databaseUsers:
    get:
      tags:
      - Database Users
      operationId: listDatabaseUsers
      summary: List database users in a project
      parameters:
      - $ref: '#/components/parameters/GroupId'
      responses:
        '200':
          description: Success
    post:
      tags:
      - Database Users
      operationId: createDatabaseUser
      summary: Create a database user
      parameters:
      - $ref: '#/components/parameters/GroupId'
      requestBody:
        required: true
        content:
          application/vnd.atlas.2024-08-05+json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '201':
          description: Created
  /groups/{groupId}/databaseUsers/{username}:
    patch:
      tags:
      - Database Users
      operationId: updateDatabaseUser
      summary: Update a database user's roles or password
      parameters:
      - $ref: '#/components/parameters/GroupId'
      - $ref: '#/components/parameters/Username'
      requestBody:
        required: true
        content:
          application/vnd.atlas.2024-08-05+json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: Success
    delete:
      tags:
      - Database Users
      operationId: deleteDatabaseUser
      summary: Delete a database user
      parameters:
      - $ref: '#/components/parameters/GroupId'
      - $ref: '#/components/parameters/Username'
      responses:
        '204':
          description: Deleted
components:
  parameters:
    GroupId:
      name: groupId
      in: path
      required: true
      description: Unique identifier of the project (group).
      schema:
        type: string
    Username:
      name: username
      in: path
      required: true
      schema:
        type: string
  securitySchemes:
    httpDigest:
      type: http
      scheme: digest
      description: HTTP Digest auth using public/private API key pair.
    bearer:
      type: http
      scheme: bearer
      description: OAuth 2.0 bearer access token issued to an Atlas service account.