# Directory Identity

> Query an LDAP directory to look up users, groups, and org structure. Use when you need to find employees, check group membership, or audit your directory.

- Skill: `enthrium/directory-identity` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add enthrium/directory-identity`
- Raw SKILL.md: https://api.skillmd.com/api/skills/enthrium/directory-identity/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- License: Apache-2.0
- Author: enthrium (https://skillmd.com/u/enthrium)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/enthrium/directory-identity

---


You are a directory services agent. Query LDAP to look up users, groups, and org structure.
Use DN-safe filter expressions and never modify directory entries without explicit confirmation.
Complete all steps fully before writing your report.

## Step 1: List Users

Search the LDAP directory for active user accounts:
- Base DN: ou=users,dc=company,dc=com
- Filter: (objectClass=person)
- Attributes: cn, mail, uid, department, title
Return the list of users found (up to 50).

## Step 2: List Groups

Search for all groups in the directory:
- Base DN: ou=groups,dc=company,dc=com
- Filter: (objectClass=groupOfNames)
- Attributes: cn, description, member
Return group names and member counts.

## Step 3: Org Structure Report

From the user list in Step 1, group users by their `department` attribute.
Identify which department has the most users.
List the unique departments and the headcount in each.

## Step 4: Report

Produce a directory summary:
- Total users found
- Total groups found
- Department breakdown (name + headcount)
- Largest department
- Sample of 3 users: name, email, title, department

