Add-VPASIdentityUserSecurityQuestions


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

ADD USER SECURITY QUESTIONS IN IDENTITY


Description:

USE THIS FUNCTION TO ADD A USERS SECURITY QUESTIONS IN IDENTITY


Syntax:

Add-VPASIdentityUserSecurityQuestions -Username <String> -QuestionText <String> -AnswerText <String> [-token <Hashtable>] [<CommonParameters>]

Add-VPASIdentityUserSecurityQuestions -UserID <String> -QuestionText <String> -AnswerText <String> [-token <Hashtable>] [<CommonParameters>]

Add-VPASIdentityUserSecurityQuestions -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

-QuestionText <String>
Security question that will be added to the users profile

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

-AnswerText <String>
Security question answer that will be added to the users profile

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:

$AddUserSecurityQuestions = Add-VPASIdentityUserSecurityQuestions -Username {USERNAME VALUE} -QuestionText {SECURITY QUESTION VALUE} -AnswerText {SECURITY QUESTION ANSWER VALUE}

$AddUserSecurityQuestions = Add-VPASIdentityUserSecurityQuestions -UserID {USERID VALUE} -QuestionText {SECURITY QUESTION VALUE} -AnswerText {SECURITY QUESTION ANSWER VALUE}

$InputParameters = @{
        Username = "TargetUser@vman.com"
         QuestionText = "What kind of question should I put here"
         AnswerText = "A good question"
}
$AddUserSecurityQuestions = Add-VPASIdentityUserSecurityQuestions -InputParameters $InputParameters

$InputParameters = @{
        UserID = "ghUYRTfghj567HG5465754123"
         QuestionText = "What kind of question should I put here"
         AnswerText = "A good question"
}
$AddUserSecurityQuestions = Add-VPASIdentityUserSecurityQuestions -InputParameters $InputParameters


Outputs:

$true if successful

$false if failed