MongoDB Cloud Users API

Returns, adds, and edits MongoDB Cloud users.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 19

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/atlas/v2/groups/{groupId}/users List users in a project · Return All MongoDB Cloud Users in One Project #
Ask an LLM
“Who has access to a particular project?”
“Can I include pending users when listing a project's members?”
Tell an agent
List the users in project {groupId}.
Show {username} in project {groupId} with pending users.
POST /api/atlas/v2/groups/{groupId}/users Add a user to a project · Add One MongoDB Cloud User to One Project #
Ask an LLM
“How do I give someone access to a project?”
“Can I add a user to a project by email?”
Tell an agent
Add {username} to project {groupId} with roles {roles}.
Invite {username} to project {groupId} as a new member.
DELETE /api/atlas/v2/groups/{groupId}/users/{userId} Remove a user from a project · Remove One MongoDB Cloud User from One Project #
Ask an LLM
“How do I revoke someone's access to a project?”
“Can I remove a pending user from a project?”
Tell an agent destructive · confirm first
Remove user {userId} from project {groupId}.
Revoke {userId}'s project access in {groupId}.
GET /api/atlas/v2/groups/{groupId}/users/{userId} Get a user in a project · Return One MongoDB Cloud User in One Project #
Ask an LLM
“What roles does a user have in a project?”
“Can I look up one project member by ID?”
Tell an agent
Show user {userId} in project {groupId}.
Get the project roles of {userId} in {groupId}.
POST /api/atlas/v2/groups/{groupId}/users/{userId}:addRole Add a role to a user in a project · Add One Project Role to One MongoDB Cloud User #
Ask an LLM
“How do I give a user a new role in a project?”
“Can I add a role to a pending user?”
Tell an agent
Add role {groupRole} to user {userId} in project {groupId}.
Grant {userId} the {groupRole} role in {groupId}.
POST /api/atlas/v2/groups/{groupId}/users/{userId}:removeRole Remove a role from a user in a project · Remove One Project Role from One MongoDB Cloud User #
Ask an LLM
“How do I take a role away from a user in a project?”
“Can I remove a role from a pending user?”
Tell an agent destructive · confirm first
Remove role {groupRole} from user {userId} in project {groupId}.
Revoke {userId}'s {groupRole} role in {groupId}.
GET /api/atlas/v2/orgs/{orgId}/teams/{teamId}/users List users on a team · Return All MongoDB Cloud Users Assigned to One Team #
Ask an LLM
“Which users belong to a team?”
“Can I filter a team's members by username?”
Tell an agent
List the users on team {teamId} in organization {orgId}.
Show {username} on team {teamId} in {orgId}.
POST /api/atlas/v2/orgs/{orgId}/teams/{teamId}:addUser Add a user to a team · Add One MongoDB Cloud User to One Team #
Ask an LLM
“How do I add a user to a team?”
“Can I add a pending user to a team?”
Tell an agent
Add user {id} to team {teamId} in organization {orgId}.
Put {id} on team {teamId} in {orgId}.
POST /api/atlas/v2/orgs/{orgId}/teams/{teamId}:removeUser Remove a user from a team · Remove One MongoDB Cloud User from One Team #
Ask an LLM
“How do I take a user off a team?”
“Can I remove a pending user from a team?”
Tell an agent destructive · confirm first
Remove user {id} from team {teamId} in organization {orgId}.
Take {id} off team {teamId} in {orgId}.
GET /api/atlas/v2/orgs/{orgId}/users List users in an organization · Return All MongoDB Cloud Users in One Organization #
Ask an LLM
“Who are the members of my organization?”
“Can I list only pending users in an organization?”
Tell an agent
List the users in organization {orgId}.
Show {username} in organization {orgId} with status {orgMembershipStatus}.
POST /api/atlas/v2/orgs/{orgId}/users Invite a user to an organization · Add One MongoDB Cloud User to One Organization #
Ask an LLM
“How do I invite someone to join my organization?”
“Can I invite a user to an organization by email?”
Tell an agent
Invite {username} to organization {orgId} with roles {roles}.
Send an organization invitation to {username} in {orgId}.
DELETE /api/atlas/v2/orgs/{orgId}/users/{userId} Remove a user from an organization · Remove One MongoDB Cloud User from One Organization #
Ask an LLM
“How do I remove someone from my organization?”
“Can I remove a pending user from an organization?”
Tell an agent destructive · confirm first
Remove user {userId} from organization {orgId}.
Revoke {userId}'s organization access in {orgId}.
GET /api/atlas/v2/orgs/{orgId}/users/{userId} Get a user in an organization · Return One MongoDB Cloud User in One Organization #
Ask an LLM
“What roles does a user have in an organization?”
“Can I look up an organization member by ID?”
Tell an agent
Show user {userId} in organization {orgId}.
Get the organization roles of {userId} in {orgId}.
PATCH /api/atlas/v2/orgs/{orgId}/users/{userId} Update an organization user · Update One MongoDB Cloud User in One Organization #
Ask an LLM
“How do I change a user's roles in an organization?”
“Can I move a user to different teams in an organization?”
Tell an agent
Update user {userId} in organization {orgId} with roles {roles}.
Move {userId} in {orgId} to teams {teamIds}.
POST /api/atlas/v2/orgs/{orgId}/users/{userId}:addRole Grant an organization role to a user · Add One Organization Role to One MongoDB Cloud User #
Ask an LLM
“How do I give a user an admin role in my MongoDB Atlas organization?”
“Can I add another role to a pending user who hasn't accepted their invitation?”
Tell an agent
Grant organization role {role} to user {user} in org {org}.
Add the {role} role to {user} in organization {org} so they can manage other users.
POST /api/atlas/v2/orgs/{orgId}/users/{userId}:removeRole Revoke an organization role from a user · Remove One Organization Role from One MongoDB Cloud User #
Ask an LLM
“How do I take away a role from a user in my atlas organization?”
“Does a user have to keep at least one role at all times when I remove one?”
Tell an agent
Remove organization role {role} from user {user} in org {org}.
Take the {role} role away from {user} in organization {org}.
POST /api/atlas/v2/users Create a MongoDB Cloud user account · Create One MongoDB Cloud User #
Ask an LLM
“How do I create a MongoDB Cloud user account for a new employee?”
“Can I set the country and mobile number when creating a user?”
Tell an agent
Create a MongoDB Cloud user {username} with first name {firstName}, last name {lastName}, email {emailAddress}, mobile {mobileNumber}, country {country}, roles {roles}, password {password}.
Set up a new MongoDB Cloud user {username} in {country} with roles {roles}.
GET /api/atlas/v2/users/byName/{userName} Look up a MongoDB Cloud user by username · Return One MongoDB Cloud User by Username #
Ask an LLM
“What are the details of a MongoDB Cloud user account?”
“Can I look up a user by their username?”
Tell an agent
Show the user account {userName}.
Look up MongoDB Cloud user {userName}.
GET /api/atlas/v2/users/{userId} Get a MongoDB Cloud user account · Return One MongoDB Cloud User by ID #
Ask an LLM
“How do I look up a MongoDB Cloud user by ID?”
“Can I retrieve my own user account details?”
Tell an agent
Get MongoDB Cloud user {userId}.
Show the profile of user {userId}.

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:mongodb-mongodb-cloud-users-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

mongodb-mongodb-cloud-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MongoDB Cloud Users API
  version: '2.0'
  license:
    name: CC BY-NC-SA 3.0 US
    url: https://creativecommons.org/licenses/by-nc-sa/3.0/us/
  termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
  x-refined-note:
  - x-xgen-sha differs across the merged source definitions and was not carried
  description: 'Operations tagged MongoDB Cloud Users across 2 of this provider''s published API definitions: mongodb-atlas-openapi.yaml, mongodb-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cloud.mongodb.com
security:
- ServiceAccounts: []
- DigestAuth: []
tags:


# --- truncated at 32 KB (121 KB total) ---
# Full source: https://artifacts.apis.io/mongodb/openapi/mongodb-mongodb-cloud-users-api-openapi.yml