<div dir="ltr">Hi all! I am trying to modify the security questions answers for users on midpoint via REST API and I'm a bit stuck. I have the following object modification just for testing purposes:<br><objectModification<br>        xmlns="<a href="http://midpoint.evolveum.com/xml/ns/public/common/api-types-3">http://midpoint.evolveum.com/xml/ns/public/common/api-types-3</a>"<br>        xmlns:t="<a href="http://prism.evolveum.com/xml/ns/public/types-3">http://prism.evolveum.com/xml/ns/public/types-3</a>"<br>        xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br>        xmlns:c="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"<br>        xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"><br>    <itemDelta><br>        <t:modificationType>replace</t:modificationType><br>        <t:path>credentials/securityQuestions/questionAnswer</t:path><br>        <t:value><br>            <c:questionAnswer><br>                <c:questionIdentifier><a href="http://midpoint.evolveum.com/xml/ns/public/security/question-2#q001">http://midpoint.evolveum.com/xml/ns/public/security/question-2#q001</a></c:questionIdentifier><br>                <c:questionAnswer><br>                    <t:protectedString><br>                        <t:clearValue>Blue</t:clearValue><br>                    </t:protectedString><br>                </c:questionAnswer><br>            </c:questionAnswer><br>        </t:value><br>    </itemDelta><br></objectModification><br>Here is the security question that is defined in my SecurityPolicy:<br>            <question><br>                <identifier><a href="http://midpoint.evolveum.com/xml/ns/public/security/question-2#q001">http://midpoint.evolveum.com/xml/ns/public/security/question-2#q001</a></identifier><br>                <questionText>What is your favorite color?</questionText><br>            </question><br>It modifies the user, however it does not populate the security question answer on the user object. It instead creates the following:<br>... <br><securityQuestions><br>    <metadata><br>        <modifyTimestamp>2024-07-26T14:40:57.458-10:00</modifyTimestamp><br>        <modifierRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType"/><br>        <modifyChannel><a href="http://midpoint.evolveum.com/xml/ns/public/common/channels-3#rest">http://midpoint.evolveum.com/xml/ns/public/common/channels-3#rest</a></modifyChannel><br>    </metadata><br>    <questionAnswer id="33"/><br></securityQuestions><br>...<br>I'm thinking that the question isn't being referenced correctly in the objectModification, any help is appreciated. <br></div>