Import-PAMAccounts
Bulk account onboarding from a CSV (see Templates/account-import-template.csv).
Syntax
Section titled “Syntax”Import-PAMAccounts [-Path] <string> [-DryRun] [-ReportPath <string>] [-ConfigPath <string>] [-ConfigProfile <string>]Description
Section titled “Description”Same two-pass design as Import-PAMSafes: every row is validated offline first (required columns, no blanks, duplicate user+address+safe rows), and any problem stops the run before a single API call with all bad rows reported at once. Live creation then runs row by row – an account that already exists is Skipped, other failures are Failed, and the run continues. No password column by design: CPM reconcile sets the secret.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Import-PAMAccounts -Path .\accounts.csv -DryRunExample 2
Section titled “Example 2”Import-PAMAccounts -Path .\accounts.csv -ReportPath .\reports\accounts-run.csvNo SupportsShouldProcess here – the per-account confirmation lives in Add-PAMAccount; this orchestrator’s preview mechanism is -DryRun.
Parameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
-DryRun
Section titled “-DryRun”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 0 | No |
-ReportPath
Section titled “-ReportPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | Named | No |
This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Import-PAMAccounts -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
