Get-VPASAllAccounts


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET ALL ACCOUNTS


Description:

USE THIS FUNCTION TO GET ALL ACCOUNTS IN CYBERARK


Syntax:

Get-VPASAllAccounts [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-token <Hashtable>
HashTable of data containing various pieces of login information (PVWA, LoginToken, HeaderType, etc).
If -token is not passed, function will use last known hashtable generated by New-VPASToken

Required: false
Position: 1
Default value:
Accept pipeline input: true (ByPropertyName)
Accept wildcard characters: false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug
ErrorAction, ErrorVariable, WarningAction, WarningVariable
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216)


Examples:

$AllAccountsJSON = Get-VPASAllAccounts


Outputs:

If successful:
{
         "count": 176,
         "value": [
                 ...
                 {
                         "categoryModificationTime": 1715701023,
                         "platformId": "VPASDualControl",
                         "safeName": "VPASRequestSafe",
                         "id": "120_3",
                         "name": "Operating System-VPASDualControl-vman.com-DomainAdmin01",
                         "address": "vman.com",
                         "userName": "DomainAdmin011",
                         "secretType": "password",
                         "platformAccountProperties": "",
                 "secretManagement": "@{automaticManagementEnabled=True; lastModifiedTime=1715222718}",
                         "createdTime": 1715222718
                 },
                 {
                         "categoryModificationTime": 1715227807,
                         "platformId": "VPASDualControl",
                         "safeName": "VPASRequestSafe",
                         "id": "120_4",
                         "name": "Operating System-VPASDualControl-vman.com-DomainAdmin02",
                         "address": "vman.com",
                         "userName": "DomainAdmin02",
                         "secretType": "password",
                         "platformAccountProperties": "",
                 "secretManagement": "@{automaticManagementEnabled=True; lastModifiedTime=1715227806}",
                         "createdTime": 1715227806
                 },
                 {
                         "categoryModificationTime": 1715227821,
                         "platformId": "VPASDualControl",
                         "safeName": "VPASRequestSafe",
                         "id": "120_5",
                         "name": "Operating System-VPASDualControl-vman.com-DomainAdmin03",
                         "address": "vman.com",
                         "userName": "DomainAdmin03",
                         "secretType": "password",
                         "platformAccountProperties": "",
                 "secretManagement": "@{automaticManagementEnabled=True; lastModifiedTime=1715227820}",
                         "createdTime": 1715227820
                 },
                 ...
         ]
}

$false if failed