securityQuestionsDetailLevel
If securityQuestionsDetailLevel
is set, the response can contain the following information:
EXCLUDE
: No security question information is returned.
LOW
:userExtId
credentialExtId
state
answers
question
extId
answer
MEDIUM
: All elements from theLOW
detail level, withanswers
extended, plus:answers
question
extId
description
state
displayName
entries
lang
value
content
entries
lang
value
answer
revealCount
failureCount
successCount
HIGH
:userExtId
credentialExtId
state
answers
ctlCreUid
ctlCreDat
ctlModUid
ctlModDat
ctlTcn
question
extId
description
state
displayName
entries
lang
value
content
entries
lang
value
answer
revealCount
failureCount
successCount
ctlCreUid
ctlCreDat
ctlModUid
ctlModDat
ctlTcn
The following detail levels can be useful in combination with securityQuestionsDetailLevel
:
credentialDetailLevel
defaultDetailLevel
Example of a request and response with securityQuestionsDetailLevel
set to MEDIUM
:
Request:
<v1:queryCredentials>
<query>
<clientName>Default</clientName>
<detailLevels>
<credentialDetailLevel>MEDIUM</credentialDetailLevel>
<securityQuestionsDetailLevel>MEDIUM</securityQuestionsDetailLevel>
</detailLevels>
<credential>
<type>SECURITY_QUESTIONS</type>
<userExtId>9999999404</userExtId>
</credential>
</query>
</v1:queryCredentials>
Response:
<ns2:queryCredentialsResponse
xmlns:ns2="http://adnovum.ch/nevisidm/ws/services/v1">
<return>
<userExtId>9999999404</userExtId>
<state>ACTIVE</state>
<type>SECURITY_QUESTIONS</type>
<lastChange>2024-05-17T13:24:29.000+02:00</lastChange>
<validFrom>2024-05-16T13:24:29.000+02:00</validFrom>
<validTo>2024-05-18T13:24:29.000+02:00</validTo>
<failureCount>0</failureCount>
<successCount>0</successCount>
<resetCount>0</resetCount>
<value>N/A</value>
<extId>9999999409</extId>
<name>ScimQueryRestTest</name>
<securityQuestion>
<userExtId>9999999404</userExtId>
<credentialExtId>9999999409</credentialExtId>
<state>ACTIVE</state>
<answers>
<question>
<extId>9999999404</extId>
<description>ScimQueryRestTest</description>
<state>ACTIVE</state>
</question>
<answer>*****</answer>
<revealCount>1</revealCount>
<failureCount>3</failureCount>
<successCount>2</successCount>
</answers>
</securityQuestion>
</return>
</ns2:queryCredentialsResponse>