---
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

---

[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)
