Get-VPASAllEPVGroups


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET ALL EPV GROUPS


Description:

USE THIS FUNCTION TO GET ALL EPV GROUPS


Syntax:

Get-VPASAllEPVGroups [[-IncludeMembers]] [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-IncludeMembers [<SwitchParameter>]
Switch to include group members in the return value per EPVGroup or not

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

-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: 2
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:

$EPVGroupsJSON = Get-VPASAllEPVGroups


Outputs:

If successful:
{
         "value": [
                 ...
                 {
                         "id": 225,
                         "groupType": "Vault",
                         "members": "",
                         "groupName": "TestingNestedGroup1",
                         "description": "",
                         "location": "\\"
                 },
                 {
                         "id": 226,
                         "groupType": "Vault",
                         "members": "",
                         "groupName": "TestingNestedGroup2",
                         "description": "",
                         "location": "\\"
                 },
                 {
                         "id": 227,
                         "groupType": "Vault",
                         "members": "",
                         "groupName": "AppIDGroup",
                         "description": "",
                         "location": "\\"
                 },
                 {
                         "id": 244,
                         "groupType": "Vault",
                         "members": "",
                         "groupName": "UpdatedGroupName",
                         "description": "New group for documentation",
                         "location": "\\"
                 },
                 ...
         ],
         "count": 47,
         "nextLink": null
}

$false if failed