John Patsias · West Palm Beach, FL
← All projects

Access Review Tool

This tool reads an Active Directory export and flags the accounts an auditor would ask about: unused admin accounts, people who have left, passwords that never expire and shared logins.

Try it

Review my own CSV

SeverityAccountFindingWhat to do

Your file never leaves your browser. The check runs on this page with JavaScript, and nothing is uploaded or saved. The sample company and everyone in it are fictional.

Role
Solo project
Stack
PowerShell, Python, JavaScript
Input
Active Directory user export
Footprint
Read-only, runs locally
Tests
7

Why I built it

Accounts tend to outlive the people who need them. Someone leaves, a temp's contract ends, a test account gets forgotten, and admin rights pile up. HIPAA and PCI DSS both expect regular access reviews for this reason. In a small business, nobody has time to click through every account in AD Users and Computers, so I wrote something that does the first pass.

How it works

  • A read-only PowerShell script (Export-ADUsers.ps1) saves each account's last logon, password settings and groups to a CSV. It doesn't change anything in AD.
  • A Python command-line tool, or this web page, checks that file against the rules below and sorts what it finds by severity.
  • Each finding comes with a suggested fix, and you can export the list to CSV for a ticket or an audit file.

What it flags

  • Critical: admin accounts that are unused or have never been logged into.
  • High: disabled accounts still sitting in admin groups, accounts that don't require a password, admin passwords that never expire, and accounts unused for 6+ months.
  • Medium: stale accounts (90+ days by default), accounts that never logged in, non-admin passwords that never expire, and shared or generic names like frontdesk or temp01.
  • Low: passwords older than a year.

Known limits

It only sees direct group membership for now, so groups inside other groups aren't expanded yet. AD's last-logon date can also be up to about two weeks behind, so keep the stale setting well above that. Next, I want to expand nested groups, add Microsoft Entra ID (Azure AD) sign-in data, and compare two exports to show what changed between reviews.

How I used AI

I built this with Claude Code: the PowerShell export, the Python checker and this page. I checked its findings against a fictional 25-account sample company, the same one the demo loads, and 7 automated tests cover the checker.

Questions about this project? Email [email protected].