Set-VPASIdentityUserStatus


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

SET USER STATUS IN IDENTITY


Description:

USE THIS FUNCTION TO ENABLE OR DISABLE A USER IN IDENTITY


Syntax:

Set-VPASIdentityUserStatus -Username <String> -LockUser <String> [-token <Hashtable>] [<CommonParameters>]

Set-VPASIdentityUserStatus -UserID <String> -LockUser <String> [-token <Hashtable>] [<CommonParameters>]

Set-VPASIdentityUserStatus -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

-LockUser <String>
Specify the locked status of the target user in Identity
Possible values: TRUE, FALSE

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:

$SetUserStatus = Set-VPASIdentityUserStatus -Username {USERNAME VALUE} -LockUser {LOCKUSER VALUE}

$SetUserStatus = Set-VPASIdentityUserStatus -UserID {USERID VALUE} -LockUser {LOCKUSER VALUE}

$InputParameters = @{
        Username = "vman@cyberark.cloud.1234"
        LockUser = "TRUE"|"FALSE"
}
$SetUserStatus = Set-VPASIdentityUserStatus -InputParameters $InputParameters

$InputParameters = @{
        UserID = "12345_abcdefg_67890_hijklmn"
        LockUser = "TRUE"|"FALSE"
}
$SetUserStatus = Set-VPASIdentityUserStatus -InputParameters $InputParameters


Outputs:

$true if successful

$false if failed