<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->

# API Reference — Implementing Identity Data Governance

## Commands

| Command | Description |
|---|---|
| `Get-MgUser -Select` | Query Azure AD user attributes |
| `Get-ADUser -Properties *` | Get AD user details |
| `Compare-Object` | Compare attributes across systems |
| `Get-MgAuditLogDirectoryAudit` | Audit identity data changes |
| `Search-ADAccount -AccountDisabled` | Find disabled accounts |
| `Get-MgUserMemberOf` | List user group memberships |
| `Export-Csv` | Export identity data for analysis |

## Agent Script

```bash
# node agent.js audit
# node agent.js sync-check --user <value>
# node agent.js privacy-report
```
