---
title: "Get user by user name"
method: GET
path: "/user/{username}"
tags: ["user"]
---

# Get user by user name

`GET /user/{username}`

## Request

- Base URL: `/v3` (relative, and the document’s source URL is not known)
- URL: `/v3/user/{username}`
- Auth: none declared

## Path parameters

- `username` string, required

## Response `200`

successful operation

- User
  - `id` integer
  - `username` string
  - `firstName` string
  - `lastName` string
  - `email` string
  - `password` string
  - `phone` string
  - `userStatus` integer: User Status

## Other responses

- `400`: Invalid username supplied
- `404`: User not found

---

[API](https://skmtc.dev/lightcast/apis/swagger-petstore-openapi-3-0.md) - [All operations](https://skmtc.dev/lightcast/apis/swagger-petstore-openapi-3-0/llms.txt) - [OpenAPI document](https://skmtc.dev/lightcast/apis/swagger-petstore-openapi-3-0/revisions/4f1f6cb5a0cb?raw)
