Set-PASLinkedAccount

Set-PASLinkedAccount

SYNOPSIS

Associates a linked account to an existing account.

SYNTAX

Set-PASLinkedAccount [-AccountID] <String> [-safe] <String> [-extraPasswordIndex] <String> [-name] <String>
 [-folder] <String> [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Associates a Reconcile account, Logon account, or other type of linked account that is defined in the platform configuration.

Requires the following Safe member authorizations:

  • List accounts
    • Required for both the Safe of the linked account and the Safe of the source account.
  • Update account properties.
    • Require for the Safe of the source account

Requires CyberArk Vrsion 12.1+

EXAMPLES

Example 1

PS C:\> Set-PASLinkedAccount -AccountID 29_4 -safe Some_Safe -extraPasswordIndex 1 -name SomeAdmin -folder root

Adds “SomeAdmin” account from “Some_Safe” as the logon account for account with id 29_4

Example 2

PS C:\> Set-PASLinkedAccount -AccountID 29_4 -safe Some_Safe -extraPasswordIndex 2 -name SomeAccount -folder root

Adds “SomeAccount” account from “Some_Safe” as the extrapass2 account for account with id 29_4

Example 3

PS C:\> Set-PASLinkedAccount -AccountID 29_4 -safe Some_Safe -extraPasswordIndex 3 -name SomeReconcile -folder root

Adds “SomeReconcile” account from “Some_Safe” as the reconcile account for account with id 29_4

PARAMETERS

-AccountID

The AccountID of the account to associate a linked account to.

Type: String
Parameter Sets: (All)
Aliases: id

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-safe

The Safe in which the linked account is stored.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-extraPasswordIndex

The linked account’s extra password index (1,2, or 3).

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-name

The accountname of the linked account.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 4
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-folder

The folder in which the linked account is stored in it’s safe.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 5
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

https://pspas.pspete.dev/commands/Set-PASLinkedAccount

https://docs.cyberark.com/Product-Doc/OnlineHelp/PAS/Latest/en/Content/WebServices/Link-account.htm