---
title: "Get available UID/GID numbers"
method: GET
path: "/api/ldap/ids"
tags: ["LDAP management"]
---

# Get available UID/GID numbers

`GET /api/ldap/ids`

Retrieve lists of used UID/GID numbers and get proposed available numbers for new user/group creation

## Response `200`

Successfully retrieved UID/GID information

- object
  - `success` boolean
  - `message` object
    - `proposed_uid` integer — Suggested available UID for new user
    - `proposed_gid` integer — Suggested available GID for new group
    - `uid_in_use` integer[] — List of currently used UIDs
    - `gid_in_use` integer[] — List of currently used GIDs

## Other responses

- `500` — Unable to contact LDAP server or lookup failed

## Changes

- **2026-08-15** (v1) `058396b8f0f1` — 2 info
  - the endpoint scheme security `socaAuth AND socaToken` was added to the API
  - the endpoint scheme security `edhAuth AND edhToken` was removed from the API
- **2026-04-21** (v1) `6db97cead8df` — 2 info
  - the endpoint scheme security `edhAuth AND edhToken` was added to the API
  - the endpoint scheme security `socaAuth AND socaToken` was removed from the API
- **2025-08-05** (v1) `55c07c16d2e1` — 2 info
  - the endpoint scheme security `socaAuth AND socaToken` was added to the API
  - the endpoint scheme security `edhAuth AND edhToken` was removed from the API

[Change history](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api/changes/api/ldap/ids/get.md)

---

[API](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/engineering-development-hub-edh-api/revisions/058396b8f0f1/schema)
