Skip to content

Add-PAMAccount

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Onboards a single account into an existing safe.

Terminal window
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]

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.

Terminal window
Add-PAMAccount -SafeName AB-PAS-SRV-WIN-DA-I-M-P -PlatformId WinDomain `
-UserName svc-sapapp -Address example.com

Not described in the module help.

Type Required Position Pipeline input
String No 3 No

Not described in the module help.

Type Required Position Pipeline input
String No 10 No

Not described in the module help.

Type Required Position Pipeline input
String No 11 No

Asks for confirmation before the command changes anything.

Type Required Position Pipeline input
SwitchParameter No Named No

Aliases: cf.

Not described in the module help.

Type Required Position Pipeline input
SwitchParameter No Named No

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

Disables CPM management for this account (sets automaticManagementEnabled=false with -ManualManagementReason).

Type Required Position Pipeline input
SwitchParameter No Named No

Not described in the module help.

Type Required Position Pipeline input
String No 8 No

Not described in the module help.

Type Required Position Pipeline input
String Yes 1 No

Not described in the module help.

Type Required Position Pipeline input
String Yes 0 No

Not described in the module help.

Type Required Position Pipeline input
Security.SecureString No 6 No

Not described in the module help.

Type Required Position Pipeline input
String No 5 No

Accepted values: password, key. Default: password.

Not described in the module help.

Type Required Position Pipeline input
String No 9 No

Not described in the module help.

Type Required Position Pipeline input
String Yes 2 No

Not described in the module help.

Type Required Position Pipeline input
SwitchParameter No Named No

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).

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