Invoke-PAMAccountAction
Triggers a CPM lifecycle action on an account: Verify, Change (rotate) or Reconcile. Requires a connected session.
Syntax
Section titled “Syntax”Parameter set One (default):
Invoke-PAMAccountAction -AccountId <string> -Action <string> [-ConfigPath <string>] [-ConfigProfile <string>] [-WhatIf] [-Confirm]Parameter set Safe:
Invoke-PAMAccountAction -SafeName <string> -Action <string> [-ConfigPath <string>] [-ConfigProfile <string>] [-WhatIf] [-Confirm]Description
Section titled “Description”Thin, audited wrapper over the CyberArk CPM action endpoints. The action is asynchronous on the CPM side; this cmdlet requests it and logs the request.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Invoke-PAMAccountAction -AccountId 123_45 -Action VerifyExample 2
Section titled “Example 2”Invoke-PAMAccountAction -AccountId 123_45 -Action ChangeParameters
Section titled “Parameters”-AccountId
Section titled “-AccountId”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | Named | No |
-Action
Section titled “-Action”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | Named | No |
Accepted values: Verify, Change, Reconcile.
-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 |
-Confirm
Section titled “-Confirm”Asks for confirmation before the command changes anything.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: cf.
-SafeName
Section titled “-SafeName”Bulk mode – run the action on every CPM-managed account in a safe.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 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 Invoke-PAMAccountAction -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
