Get-PAMDriftExplanation
Claude explains an RBAC drift result in plain English – what drifted, why it matters, and the safest order to fix it.
Syntax
Section titled “Syntax”Parameter set Live (default):
Get-PAMDriftExplanation [-SafeName] <string> [-ConfigPath <string>] [-ConfigProfile <string>]Parameter set Result:
Get-PAMDriftExplanation -DriftResult <Object> [-ConfigPath <string>] [-ConfigProfile <string>]Description
Section titled “Description”Takes either a safe name (runs Compare-PAMSafePermissions live, needs a session) or an existing drift result object (no session needed – the web UI passes the row it already holds). The trimmed drift facts go to the Anthropic API via the profile’s opt-in assistant config; the answer comes back as reviewer-ready prose for a change ticket or a colleague. PRIVACY: the safe name, member/group names and permission names are sent to the Anthropic API. Requires Set-HarborAssistant opt-in.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Get-PAMDriftExplanation -SafeName AB-PAS-SRV-WIN-DA-I-M-PExample 2
Section titled “Example 2”Compare-PAMSafePermissions -All | Where-Object { -not $_.InCompliance } | Get-PAMDriftExplanationParameters
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 |
-DriftResult
Section titled “-DriftResult”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
Object |
Yes | Named | By value |
-SafeName
Section titled “-SafeName”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 0 | No |
This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).
Outputs
Section titled “Outputs”- PSCustomObject: SafeName, InCompliance, Explanation, Model, GeneratedAt
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Get-PAMDriftExplanation -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
