Test-VPASIdentityUserLocked


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

CHECK IF USER IS LOCKED IN IDENTITY


Description:

USE THIS FUNCTION TO CHECK IF USER IS LOCKED IN IDENTITY


Syntax:

Test-VPASIdentityUserLocked -Username <String> [-token <Hashtable>] [<CommonParameters>]

Test-VPASIdentityUserLocked -UserID <String> [-token <Hashtable>] [<CommonParameters>]

Test-VPASIdentityUserLocked -InputParameters <Hashtable> [-token <Hashtable>] [<CommonParameters>]


Parameters:

-Username <String>
Username that will be used to query for the target user in Identity if no UserID is passed

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

-UserID <String>
Unique UserID that maps to the target User in Identity
Supply the UserID to skip any querying for the target User

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

-InputParameters <Hashtable>
HashTable of values containing the parameters required to make the API call

Required: true
Position: named
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: named
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:

$CheckLockedStatus = Test-VPASIdentityUserLocked -Username {USERNAME VALUE}

$CheckLockedStatus = Test-VPASIdentityUserLocked -UserID {USERID VALUE}

$InputParameters = @{
        Username = "TargetUsername"
}
$CheckLockedStatus = Test-VPASIdentityUserLocked -InputParameters $InputParameters

$InputParameters = @{
        UserID = "1234-abcde-56789-efghijl-09876"
}
$CheckLockedStatus = Test-VPASIdentityUserLocked -InputParameters $InputParameters


Outputs:

$true if successful

$false if failed