<div dir="ltr"><div><div>Hello, </div></div><div><br></div><div>I have a particular use case that requires me to unset a user password for its Midpoint account. I understand I could disable the account or change its End User role to prevent a user from logging in, but due to the nature of my use case, I can only achieve this by unsetting the user password. </div><div><br></div><div>Another requirement is that I also need to do this using the RESTfull API. I tried to use the following: </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br><?xml version="1.0"?>   <br>                        <objectModification 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: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:t="<a href="http://prism.evolveum.com/xml/ns/public/types-3">http://prism.evolveum.com/xml/ns/public/types-3</a>"><br>                                        <t:itemDelta><br>                                                <t:modificationType>delete</t:modificationType><br>                                                <t:path>credentials/password/value</t:path><br>                                        </t:itemDelta><br>                        </objectModification></blockquote><div><br></div><div>with a POST request to </div><div><br></div><div>







<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">"<a href="http://localhost:8080/midpoint/ws/rest/users/{USER_OID}">http://localhost:8080/midpoint/ws/rest/users/{USER_OID}</a>"</span></blockquote><div><br></div><div>And I get a 204 Response, however it appears the user's credentials are still there. </div><div><br></div><div>Another requirement of this is that this password update action must only be applicable to the Midpoint account and any other accounts that user has must retain whatever password was initially set.  </div></div><div><br></div><div>Any help would be greatly appreciated.</div><div><br></div><div>Thanks,</div><div>-F </div></div>