Add-PAMAccount
Onboards a single account into an existing safe.
Syntax
Section titled “Syntax”Add-PAMAccount [-SafeName] <string> [-PlatformId] <string> [-UserName] <string> [[-Address] <string>] [[-Name] <string>] [[-SecretType] <string>] [[-Secret] <securestring>] [[-ManualManagementReason] <string>] [[-Notes] <string>] [[-TicketRef] <string>] [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [-NoAutomaticManagement] [-VerifyAfter] [-DryRun] [-WhatIf] [-Confirm]Description
Section titled “Description”Validates the target safe exists before calling POST /API/Accounts. The secret is optional by design (the CSV template has no password column): managed platforms typically reconcile the password after onboarding. When no secret is supplied and automatic management is on, a warning reminds the operator that the platform’s reconcile account must be configured or the account will sit in a failed state.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Add-PAMAccount -SafeName AB-PAS-SRV-WIN-DA-I-M-P -PlatformId WinDomain ` -UserName svc-sapapp -Address example.comParameters
Section titled “Parameters”-Address
Section titled “-Address”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 3 | No |
-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 10 | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 11 | No |
-Confirm
Section titled “-Confirm”Asks for confirmation before the command changes anything.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: cf.
-DryRun
Section titled “-DryRun”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-ManualManagementReason
Section titled “-ManualManagementReason”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 7 | No |
Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 4 | No |
-NoAutomaticManagement
Section titled “-NoAutomaticManagement”Disables CPM management for this account (sets automaticManagementEnabled=false with -ManualManagementReason).
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-Notes
Section titled “-Notes”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 8 | No |
-PlatformId
Section titled “-PlatformId”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 1 | No |
-SafeName
Section titled “-SafeName”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 0 | No |
-Secret
Section titled “-Secret”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
Security.SecureString |
No | 6 | No |
-SecretType
Section titled “-SecretType”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 5 | No |
Accepted values: password, key. Default: password.
-TicketRef
Section titled “-TicketRef”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 9 | No |
-UserName
Section titled “-UserName”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 2 | No |
-VerifyAfter
Section titled “-VerifyAfter”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-WhatIf
Section titled “-WhatIf”Shows what the command would do, without doing it.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: wi.
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 Add-PAMAccount -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
