Test-PAMConfigImpact
What-if for standards edits: BEFORE saving a proposed naming / rbac / policy document, shows exactly which registered safes it would affect – names that stop validating, persona members that get added/removed/re-permissioned, policy violations that appear or resolve. Entirely offline (register + config only).
Syntax
Section titled “Syntax”Test-PAMConfigImpact [-File] <string> [-Content] <string> [[-ConfigPath] <string>] [[-ConfigProfile] <string>]Description
Section titled “Description”The proposed content is validated first (same pathed checks as Validate & Save), then staged into a temp copy of the whole config set; the ACTIVE register (status active/imported) is evaluated under the current config and the staged one, and the differences come back per safe. Nothing is written and no vault call is made.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Test-PAMConfigImpact -File rbac -Content (Get-Content .\rbac-map.json -Raw)Parameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 2 | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 3 | No |
-Content
Section titled “-Content”The proposed raw JSON.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 1 | No |
Which standard the content replaces: naming, rbac or policy (safe-defaults has no register impact).
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 0 | No |
Accepted values: naming, rbac, policy.
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 Test-PAMConfigImpact -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
