---
title: "Search AD users or groups"
method: GET
path: "/directory-services/principals"
tags: ["Directory Services"]
---

# Search AD users or groups

`GET /directory-services/principals`

## Request

- Base URL: `https://sylve.lan:8181/api`
- URL: `https://sylve.lan:8181/api/directory-services/principals`
- Auth: API key in header `Authorization`

## Query parameters

- `q` string, required
- `kind` string, required

## Response `200`

OK

- GithubComAlchemillahqSylveInternalAPIResponseArrayGithubComAlchemillahqSylveInternalDbModelsDirectoryservicesPrincipal
  - `data` GithubComAlchemillahqSylveInternalDbModelsDirectoryservicesPrincipal[]
    - `kind` string
    - `name` string
    - `sid` string
    - `unixId` integer
  - `error` string
  - `message` string
  - `status` string

## Changes

- **2026-10-13** `3b2ab23c2629`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/alchemillahq/apis/sylve-api/changes/directory-services/principals/get.md)

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) - [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alchemillahq/apis/sylve-api/revisions/9565cdd0abf5?raw)
