Import-PAMSafes
Bulk safe creation from a CSV (see Templates/safe-import-template.csv).
Syntax
Section titled “Syntax”Import-PAMSafes [-Path] <string> [-DryRun] [-SkipGroupCheck] [-ReportPath <string>] [-ConfigPath <string>] [-ConfigProfile <string>]Description
Section titled “Description”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.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Import-PAMSafes -Path .\safes.csv -DryRunExample 2
Section titled “Example 2”Import-PAMSafes -Path .\safes.csv -ReportPath .\reports\onboard-run.csvNo SupportsShouldProcess here – the per-safe confirmation lives in New-PAMSafe; 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 |
-SkipGroupCheck
Section titled “-SkipGroupCheck”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).
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Import-PAMSafes -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
