<div dir="ltr">Since the new scriptedsql resource will contain everyone and if a user is not matched it will generate a midpoint account and then disable it.<div><br></div><div>We have a notification handler for modify success and new account notification handler and with the new account notification I was able to add a simple filter to it</div><div><br></div><div>basic.getExtensionPropertyValue(requestee, '<a href="http://midpoint.bshp.edu/bshp">http://midpoint.bshp.edu/bshp</a>', 'standing') == 'ACTIVE'<br></div><div><br></div><div>it works, without any notification sent.</div><div><br></div><div>What I did notice though, since it immediately disables the account after it is created the 'modify' handler sends a notification because of the status change. I was thinking of adding the below since I cannot use the same filter above because we still want to send a notification when the persons account gets disabled.</div><div><br></div><div>What I came up with, compare the createTimestamp of the user to the current date, if they are equal then it does not send a notification.</div><div><br></div><div>               <code></div><div><font color="#9900ff">                    String createDateStr = basic.formatDateTime("yyyy-MM-dd", requestee?.getMetadata()?.getCreateTimestamp());</font></div><div><font color="#9900ff">                    String currentDateStr = basic.formatDateTime("yyyy-MM-dd", basic.currentDateTime());</font></div><div><font color="#9900ff">                    </font></div><div><font color="#9900ff"><span class="gmail-Apple-tab-span" style="white-space:pre">               </span>createDateStr != currentDateStr</font> &amp;&amp;</div><div>                    event.isRelatedToItem(new com.evolveum.midpoint.prism.path.ItemPath("activation", "administrativeStatus"))<br></div><div>                </code></div><div><br></div><div>So the question, does the metadata portion of 'createTiemstamp' ever change once the user is created in midpoint? I am assuming no, only the 'modifyTimestamp' .</div><div><br></div><div>On another note, I cannot believe I put this snippet together alone by looking through the javadocs for date functions..</div><div><br></div><div>Thanks!</div><div>JASON</div><div><br></div><div><br></div></div>