Skip to content

About

Self-hosted semantic search & local-LLM agent that unifies AD, M365, SharePoint, netForum & more into one searchable, governance-aware identity platform.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

47 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Search

CI License: MIT Node

Status: proof of concept. Built as a personal project to explore semantic search over structured identity data and LLM tool-calling for real governance/IT-admin workflows. All data is synthetic, there is no auth layer, and it's designed to run locally via Docker — not production-hardened.

A semantic search and AI agent platform for identity and access data. It consolidates six identity/access sources — Active Directory, netForum, External Users, Distribution Groups, M365 Group Memberships, and SharePoint Permissions — into a single searchable, chat-driven interface, backed by vector search and a local LLM agent that can actually take action, not just answer questions.

Screenshots

Compliance dashboard Semantic search
Compliance Posture, Activity Trends, Reports, and Policy Rules panels Intersection query results across sources
Unified user detail card AI agent & governance chat
Cross-source detail card with change history User-scoped and global governance agent panels

What it does

  • Cross-source semantic search — find a person by name, email fragment, or plain-English description; results are ranked by vector similarity (SBERT embeddings), not keyword matching.
  • Unified detail view — one card shows a user's standing across every source system, plus group memberships, SharePoint permissions, and full change/activity history.
  • AI agent with real actions — a 57-tool LLM agent (Ollama, running fully locally) can provision/disable accounts, manage group and SharePoint access, reset MFA, assign licenses, run governance checks (stale guests, naming violations, missing owners, oversharing risks), and more — every write action is ticketed and auditable.
  • Governance & compliance tracking — tracked violations with severity/age, policy-rule overrides, automated remediation proposals with human approval gating, and a live compliance score.
  • Observable ETL pipelines — six independent pipelines ingest, vectorize, and change-detect records on a schedule, with full job history.

Architecture at a glance

graph TB
    classDef person fill:#08427B,stroke:#073B6F,color:#fff
    classDef system fill:#1168BD,stroke:#0E5BA7,color:#fff
    classDef external fill:#999999,stroke:#6B6B6B,color:#fff

    User["👤 IT Administrator<br/><br/>Searches for users across<br/>identity systems, reviews<br/>activity logs, and chats with<br/>the GenAI assistant"]:::person

    UserSearch["🔍 User Search Platform<br/><br/>Dockerized application providing semantic<br/>vector search, detail lookups, change history,<br/>ETL observability, and a 57-tool GenAI agent<br/>(Ollama, running fully locally)"]:::system

    AD["Active Directory<br/><br/>Corporate identity provider<br/>(simulated via synthetic data)"]:::external
    NF["netForum<br/><br/>Membership management system<br/>(simulated via synthetic data)"]:::external
    EU["External Users<br/><br/>Guest / external identity store<br/>(simulated via synthetic data)"]:::external
    DG["Distribution Groups<br/><br/>Exchange distribution lists<br/>(simulated via synthetic data)"]:::external
    M365["M365 Groups<br/><br/>Microsoft 365 / Teams / Security groups<br/>(simulated via synthetic data)"]:::external
    SP["SharePoint On-Prem<br/><br/>Site permissions and access control<br/>(simulated via synthetic data)"]:::external
    HF["Hugging Face Hub<br/><br/>ML model registry<br/>all-MiniLM-L6-v2"]:::external

    User -->|"Searches users, reviews logs,<br/>chats via browser (HTTP)"| UserSearch
    UserSearch -->|"Ingests identity records<br/>(ETL batch)"| AD
    UserSearch -->|"Ingests member records<br/>(ETL batch)"| NF
    UserSearch -->|"Ingests guest accounts<br/>(ETL batch)"| EU
    UserSearch -->|"Ingests distribution lists<br/>(ETL batch)"| DG
    UserSearch -->|"Ingests group memberships<br/>(ETL batch)"| M365
    UserSearch -->|"Ingests site permissions<br/>(ETL batch)"| SP
    UserSearch -->|"Downloads SBERT model<br/>(first run only)"| HF
Loading

More diagrams (sequence, ER, ETL data flow, Docker topology, agent architecture) live in docs/diagrams/.

Tech stack

Node.js 22 · Express · PostgreSQL 15 + pgvector (HNSW indexes) · SBERT (all-MiniLM-L6-v2) via @xenova/transformers · Ollama (qwen2.5:3b) for local LLM tool-calling · Docker Compose · Jest · ESLint

Full inventory with versions: docs/technology-stack.md

Quickstart

./startup/setup.sh

This builds every image, starts Postgres, initialises the schema, starts all six ETL lines plus the app and GenAI services, and pulls the Ollama model. Once it finishes, open http://localhost:3000, search for a user, and open their card to try the agent.

./startup/teardown.sh            # stop containers, keep data
./startup/teardown.sh --destroy  # stop containers, remove all data & images

For individual services, manual compose commands, database initialisation, and synthetic data regeneration, see docs/README.md.

Documentation

Doc Covers
docs/README.md Full dev setup, Docker Compose fragments, seeding, linting
docs/technology-stack.md Every technology/library/model in the solution
docs/etl-architecture.md ETL pipeline design and full database schema reference
docs/diagrams/ C4, sequence, entity-relationship, and state diagrams
docs/manual-test-script.md Human walkthrough script covering every feature end-to-end

About

Self-hosted semantic search & local-LLM agent that unifies AD, M365, SharePoint, netForum & more into one searchable, governance-aware identity platform.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages