Skip to content

Import-PAMSafes

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Bulk safe creation from a CSV (see Templates/safe-import-template.csv).

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

Two-pass design, matching the module’s validation philosophy: Pass 1 – validate EVERY row offline (columns, naming standard, RetrieveAccounts explicitly TRUE/FALSE, personal rows have an Owner, duplicate names within the file). Any problem stops the run before a single API call, reporting every bad row at once. Pass 2 – create each safe via New-PAMSafe (pre-flight, rollback and register handling included). A safe that already exists is reported as Skipped; other failures are reported as Failed and the run continues. Returns a summary object (Total/Created/Skipped/Failed + per-row results). -ReportPath additionally writes the per-row results as CSV for auditors.

Terminal window
Import-PAMSafes -Path .\safes.csv -DryRun
Terminal window
Import-PAMSafes -Path .\safes.csv -ReportPath .\reports\onboard-run.csv

No SupportsShouldProcess here – the per-safe confirmation lives in New-PAMSafe; 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

Not described in the module help.

Type Required Position Pipeline input
SwitchParameter 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.