<div dir="ltr"><div><div><div><div>Hello guys,<br></div>Please help me to understand what is wrong with <span style="font-weight:normal">Self post-registration. It does not send email after user modification from  </span><span style="font-weight:normal">"proposed" to </span><span style="font-weight:normal">draft </span><span style="font-weight:normal">"LifecycleState" as expected. Notification works </span><span style="font-weight:normal"><span style="font-weight:normal"> in <br></span></span></div><span style="font-weight:normal">There are no any errors in idm.log</span><span style="font-weight:normal"><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-"> . Feeling that </span></span></span><span style="font-weight:normal"><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-"><span style="font-weight:normal">handler </span>does not work.</span></span> Midpoin </span>Version
                                    3.6</div><span style="font-weight:normal">Please find configuration details in attach.<br><br></span></div><span style="font-weight:normal">Best regards, Oleksandr<br></span><div><div><div><span style="font-weight:normal"><br></span><div><span style="font-weight:normal"><br></span><b>The part of configuration from <a id="gmail-id26f"><span>SystemConfiguration</span></a></b><br><notificationConfiguration><br>      <handler><br>         <userRegistrationNotifier><br>            <recipientExpression><br>               <script xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br>                       xsi:type="c:ScriptExpressionEvaluatorType"><br>                  <code><br>                    return requestee.getEmailAddress()<br>                  </code><br>               </script><br>            </recipientExpression><br>            <bodyExpression><br>               <script xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br>                       xsi:type="c:ScriptExpressionEvaluatorType"><br>                  <code><br>                        import com.evolveum.midpoint.notifications.api.events.ModelEvent<br>                        modelEvent = (ModelEvent) event<br>                        newUser = modelEvent.getFocusContext().getObjectNew();<br>                        userType = newUser.asObjectable();<br>                        plainTextPassword = midpoint.getPlaintextUserPassword(userType);<br>                        bodyMessage = "Dear " + userType.getGivenName() + ",\n\n" +"your account was successfully created. To activate your account click on the confirmation link bellow in the email."+"\n" +"After your account is activated, use following credentials to log in: \n" +"username: " + userType.getName().getOrig() + "\n" +"password: " + plainTextPassword+ "\n\n" +midpoint.createRegistrationConfirmationLink(userType);<br>                        return bodyMessage;<br>                    </code><br>               </script><br>            </bodyExpression><br>            <transport>mail</transport><br>            <confirmationMethod>link</confirmationMethod><br>         </userRegistrationNotifier><br>    </handler><br></notificationConfiguration><br><br><br><b>The part of configuration from Security policy</b><br>   <authentication><br>      <mailAuthentication><br>         <name>confirmationLink</name><br>         <displayName>Additional mail authentication</displayName><br>         <mailNonce>mailNonce</mailNonce><br>      </mailAuthentication><br>   </authentication><br>   <credentials><br>      <password><br>         <lockoutMaxFailedAttempts>3</lockoutMaxFailedAttempts><br>         <lockoutFailedAttemptsDuration>PT3M</lockoutFailedAttemptsDuration><br>         <lockoutDuration>PT15M</lockoutDuration><br>         <valuePolicyRef xmlns:tns="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"<br>                         oid="00000004-0000-0000-0000-000000000001"<br>                         relation="org:default"<br>                         type="tns:ValuePolicyType"><!-- Password Policy for password reset --></valuePolicyRef><br>      </password><br>      <nonce><br>         <maxAge>PT10M</maxAge><br>         <lockoutMaxFailedAttempts>3</lockoutMaxFailedAttempts><br>         <lockoutFailedAttemptsDuration>PT3M</lockoutFailedAttemptsDuration><br>         <lockoutDuration>PT15M</lockoutDuration><br>         <valuePolicyRef oid="00000004-0000-0000-0000-000000000001"<br>                         relation="org:default"<br>                         type="c:ValuePolicyType"><!-- Password Policy for password reset --></valuePolicyRef><br>         <name>mailNonce</name><br>      </nonce><br>   </credentials><br><registration><br>      <selfRegistration><br>         <name>selfRegistration</name><br>         <initialLifecycleState>proposed</initialLifecycleState><br>         <requiredLifecycleState>draft</requiredLifecycleState><br>         <displayName>Self Registration</displayName><br>         <additionalAuthenticationName>confirmationLink</additionalAuthenticationName><br>         <defaultRole oid="00000000-0000-0000-0000-000000000008"<br>                      relation="org:default"<br>                      type="c:RoleType"><!-- End user --></defaultRole><br>      </selfRegistration><br></registration><br><br><br><br><br><br><div><br><div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(76,76,76)">Best regards, <br><br>Oleksandr Nekriach | Identity and access management engineer <br><br>Dynatech, Mednieku str. 4a, Riga, LV-1010, Latvia <br><br><div style="display:inline-block"><a href="tel:+371%2025%20314%20685" value="+37125314685" target="_blank">+37125314685</a></div>, <div style="display:inline-block"><a href="mailto:o.nekriach@dynatech.lv" target="_blank">o.nekriach@dynatech.lv</a></div> | <div style="display:inline-block"><a href="http://www.dynatech.lv" target="_blank">www.dynatech.lv</a></div> <br><br><img src="cid:o.nekriach@dynatech.lv1502777022855-7770"> <br><br>Stay connected: <br><div style="display:inline-block;margin:5px 5px 0px 0px"><a href="https://www.facebook.com/DynatechLatvia/?ref=br_rs" target="_blank"><img src="cid:o.nekriach@dynatech.lv1502777022855-7771"></a></div><div style="display:inline-block;margin:5px 0px 0px"><a href="https://www.linkedin.com/company-beta/17893047/" target="_blank"><img src="cid:o.nekriach@dynatech.lv1502777022855-7772"></a></div><br><br><span style="font-size:11px;color:rgb(161,161,161)">Confidentiality
 Notice: This message contains confidential information and is intended 
only for the named recipient(s). If you are not the addressee you may 
not copy, distribute or perform any other activities with this 
information. If you have received this transmission in error, please 
notify us by e-mail immediately. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be 
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or 
contain viruses.</span></span></div></div></div></div>
</div></div></div></div></div></div></div>