Get-VPASAccountGroupMembers


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET ACCOUNT GROUP MEMBERS


Description:

USE THIS FUNCTION TO GET ACCOUNT GROUP MEMBERS


Syntax:

Get-VPASAccountGroupMembers [[-GroupID] <String>] [[-safe] <String>] [[-GroupName] <String>] [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

-GroupID <String>
Unique ID that maps to the target AccountGroup
Supply GroupID to skip any querying for target AccountGroup

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

-safe <String>
Target unique safe name

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

-GroupName <String>
Unique target GroupName that will be used to query for the GroupID if no GroupID is passed
An account group is set of accounts that will have the same password synced across the entire group

Required: false
Position: 3
Default value:
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: 4
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:

$AccountGroupMembersJSON = Get-VPASAccountGroupMembers -GroupID {GROUPID VALUE}


Outputs:

If successful:
[
         {
                 "AccountID": "35_33",
                 "SafeName": "VadimTestSafe",
                 "PlatformID": "VadimWindowsDomain",
                 "Address": "vman.com",
                 "UserName": "GroupMemberA"
         },
         {
                 "AccountID": "35_34",
                 "SafeName": "VadimTestSafe",
                 "PlatformID": "WinDomain",
                 "Address": "vman.com",
                 "UserName": "GroupMemberB"
         }
]

$false if failed