Skip to content

Import-PAMAccounts

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Bulk account onboarding from a CSV (see Templates/account-import-template.csv).

Terminal window
Import-PAMAccounts [-Path] <string> [-DryRun] [-ReportPath <string>] [-ConfigPath <string>] [-ConfigProfile <string>]

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.

Terminal window
Import-PAMAccounts -Path .\accounts.csv -DryRun
Terminal window
Import-PAMAccounts -Path .\accounts.csv -ReportPath .\reports\accounts-run.csv

No SupportsShouldProcess here – the per-account confirmation lives in Add-PAMAccount; this orchestrator’s preview mechanism is -DryRun.

Not described in the module help.

Type Required Position Pipeline input
String No Named No

Not described in the module help.

Type Required Position Pipeline input
String No Named No

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

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).

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.