---
title: "List LDAP Servers"
method: GET
path: "/api/v2/ldapservers"
tags: ["LDAP Servers"]
---

# List LDAP Servers

`GET /api/v2/ldapservers`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/ldapservers`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/ldapservers/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint returns the object IDs of your LDAP servers.


##### Sample Request

```
  curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/ \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}'

## Query parameters

- `fields` string[]
- `filter` string[]
- `limit` integer
- `skip` integer
- `sort` string[]

## Headers

- `x-org-id` string

## Response `200`

- LdapServer[]
  - `id` string: Unique identifier of this LDAP server
  - `name` string: The name of this LDAP server
  - `userLockoutAction` 'disable' | 'remove': action to take; one of 'remove' or 'disable'
  - `userPasswordExpirationAction` 'disable' | 'remove': action to take; one of 'remove' or 'disable'

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
