---
title: "Return One MongoDB Cloud User by Username"
method: GET
path: "/api/atlas/v2/users/byName/{userName}"
tags: ["MongoDB Cloud Users"]
deprecated: true
---

# Return One MongoDB Cloud User by Username

`GET /api/atlas/v2/users/byName/{userName}`

> **Deprecated.**

Returns the details for one MongoDB Cloud user account with the specified username. You can't use this endpoint to return information about an API Key. To return information about an API Key, use the Return One Organization API Key endpoint.

## Path parameters

- `userName` string, required

## Query parameters

- `envelope` boolean
- `pretty` boolean

## Response `200`

OK

## Other responses

- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `429` — Too Many Requests.
- `500` — Internal Server Error.

---

[API](https://skmtc.dev/mongodb/apis/atlas-admin-api.md) · [All operations](https://skmtc.dev/mongodb/apis/atlas-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mongodb/atlas-admin-api/revisions/e37e8ef8429f/schema)
