ConvertTo-PAMSafeSuggestion
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.
Syntax
Section titled “Syntax”ConvertTo-PAMSafeSuggestion [-Description] <string> [-ConfigPath <string>] [-ConfigProfile <string>]Description
Section titled “Description”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.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”ConvertTo-PAMSafeSuggestion 'CPM-rotated Windows service accounts for the SAP estate, production'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 |
-Description
Section titled “-Description”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: Description, SafeType, Segments, SafeName, Valid, Errors, Reasoning, Model, GeneratedAt
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help ConvertTo-PAMSafeSuggestion -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
