docs/documentation/platform/pam/discovery/active-directory.mdx
Active Directory discovery scans an AD environment to enumerate privileged accounts, stages them for review, and lets you import them into PAM. It finds two kinds of accounts:
| Discovered type | What it is | When it is found |
|---|---|---|
| Windows AD | Domain user accounts from Active Directory | Always |
| Windows | Local accounts on domain-joined Windows servers | Only when local account discovery is enabled and the server is reachable |
All scan traffic (LDAP, DNS, and WinRM) is tunneled through an Infisical Gateway.
Behind the scenes, an Active Directory scan connects entirely through the Gateway:
Before creating an Active Directory discovery source, make sure you have:
When Discover local accounts is enabled, discovery locates domain-joined Windows servers, resolves each one through the domain controller's DNS, and queries it over WinRM to enumerate local users. These become Windows (local) staged accounts.
The following WinRM options are available:
| Field | Description |
|---|---|
| WinRM Port | Port used to reach WinRM on each server (default: 5985) |
| Use HTTPS | Connect to WinRM over HTTPS |
| Reject Unauthorized | Verify the server's TLS certificate (HTTPS only) |
| CA Certificate | Optional PEM certificate, needed only when WinRM HTTPS uses a private CA |
Trigger a scan manually with Scan Now from the source's row menu or its detail panel. Scans run in the background, and a source can only have one scan running at a time.
If the source is on a Daily or Weekly schedule, Infisical also scans it automatically when its interval has elapsed. Manual sources are only scanned when you trigger them.
From the Staged Accounts tab, select the accounts you want and click Import Accounts. Then choose:
| Field | Description |
|---|---|
| Destination Folder | The folder to import the accounts into |
| Template | An account template for each account type in your selection |
Once imported, the accounts become regular PAM accounts in the chosen folder and inherit their template's rules.
<Warning> Imported accounts arrive without a credential because discovery finds accounts with a username but no password. Open each imported account and add a credential before connecting. </Warning>