Skip to content

ConvertTo-PAMSafeSuggestion

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Turns a plain-English description of an access need into a standard-compliant safe suggestion (safe type + every input segment), validated by the same naming engine New-PAMSafe uses.

Terminal window
ConvertTo-PAMSafeSuggestion [-Description] <string> [-ConfigPath <string>] [-ConfigProfile <string>]

The profile’s naming standard (segments, allowed values, safe types) goes INTO the prompt, and structured outputs pin the reply to a JSON schema built from that standard – where a segment has allowedValues the model literally cannot pick anything else. The suggestion is then run through Test-SafeName, so the result carries the assembled name plus a Valid verdict from Harbor’s own engine, never just the model’s say-so. Nothing is written anywhere: this only fills the form. Personal safes are out of scope (they derive from a SamAccountName, not a description). Requires Set-HarborAssistant opt-in.

Terminal window
ConvertTo-PAMSafeSuggestion 'CPM-rotated Windows service accounts for the SAP estate, production'

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
String Yes 0 No

This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).

  • PSCustomObject: Description, SafeType, Segments, SafeName, Valid, Errors, Reasoning, Model, GeneratedAt

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