---
title: "Search available ldap users."
method: GET
path: "/ldap/users/search"
tags: ["Ldap"]
---

# Search available ldap users.

`GET /ldap/users/search`

This endpoint searches the available ldap users based on related configuration parameters. Support searched by input ldap configuration, load configuration from the system and specific filter.

## Query parameters

- `username` string

## Headers

- `X-Request-Id` string

## Response `200`

Search ldap users successfully.

- LdapUser[]
  - `username` string — ldap username.
  - `realname` string — The user realname from "uid" or "cn" attribute.
  - `email` string — The user email address from "mail" or "email" attribute.

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `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)
