---
title: "Search users by username"
method: GET
path: "/users/search"
tags: ["user"]
---

# Search users by username

`GET /users/search`

This endpoint is to search the users by username.  It's open for all authenticated requests.

## Query parameters

- `page` integer
- `page_size` integer
- `username` string, required

## Headers

- `X-Request-Id` string

## Response `200`

Search users by username successfully.

- UserSearchRespItem[]
  - `user_id` integer — The ID of the user.
  - `username` string

## Other responses

- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.dev/goharbor/apis/harbor-api.md) · [All operations](https://skmtc.dev/goharbor/apis/harbor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goharbor/harbor-api/revisions/62d78801f8df/schema)
