Get-VPASIdentityCurrentUserSecurityQuestions


Supported Environments:
SelfHosted
SharedServices
PCloudStandard


Synopsis:

GET SECURITY QUESTIONS FOR CURRENT USER IN IDENTITY


Description:

USE THIS FUNCTION TO RETRIEVE THE SECURITY QUESTIONS SET FOR THE CURRENT USER IN IDENTITY


Syntax:

Get-VPASIdentityCurrentUserSecurityQuestions [[-token] <Hashtable>] [<CommonParameters>]


Parameters:

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

$CurrentSecurityQuestions = Get-VPASIdentityCurrentUserSecurityQuestions


Outputs:

If successful:
{
         "AnswerMinLength": 3,
         "MaxQuestions": 20,
         "MinAdminQuestions": 0,
         "AdminQuestions": [
                 {
                         "Uuid": "a_djkasljd74892-1234-5678-abcd-klajsd374892",
                         "Culture": "all",
                         "Question": "What is your favorite color?"
                 },
                 {
                         "Uuid": "a_djkasljd74892-1234-5678-abcd-18790kejhdkq",
                         "Culture": "all",
                         "Question": "What was your first car?"
                 },
                 {
                         "Uuid": "a_djkasljd74892-1234-5678-abcd-lkj098kjh",
                         "Culture": "all",
                         "Question": "What is the name of your elementary school?"
                 }
         ],
         "MinUserQuestions": 1,
         "Questions": [
                 {
                         "Uuid": "u_djkasljd74892-1234-5678-abcd-456dfg456hj",
                         "QuestionText": "Who is your favorite superhero?"
                 }
         ]
}

$false if failed