<div dir="ltr"><div>Hi Gustav,</div><div>I have done as you wrote but nothing changed.</div><div>I have many times recreate and delete accounts but nothing changes.<br></div><div>MP doesn't detect that the account was deleted. Shadow is</div><div><br></div><div> <dead>true</dead><br>    <synchronizationSituation>unmatched</synchronizationSituation><br>    <synchronizationTimestamp>2020-08-21T14:46:05.325+03:00</synchronizationTimestamp><br>    <fullSynchronizationTimestamp>2020-08-21T14:46:05.325+03:00</fullSynchronizationTimestamp><br>    <synchronizationSituationDescription><br>        <situation>unmatched</situation><br>        <timestamp>2020-08-21T14:43:51.743+03:00</timestamp><br>        <channel><a href="http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#reconciliation">http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#reconciliation</a></channel><br>        <full>true</full><br>    </synchronizationSituationDescription><br>    <objectClass>ri:AccountObjectClass</objectClass><br>    <kind>account</kind><br>    <intent>default</intent><br>    <exists>false</exists></div><div><br></div><div>Best regards,</div><div>Oleksandr<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 20 Aug 2020 at 17:45, Pálos Gustáv <<a href="mailto:gustav.palos@gmail.com">gustav.palos@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Oleksandr,</div><div><br></div><div>I think you do not need to do this type of "trick", just return all accounts on resource.</div><div>Midpoint takes care to compare shadows vs. accounts of what you returned and detect and set the situation DELETED.</div><div><br></div><div>Or you have a "soft delete

"

? If yes, just don't return these accounts over the connector to MP.</div><div><br></div><div>Best regards,</div><div><br></div><div>Gustav</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">št 20. 8. 2020 o 15:37 Oleksandr Nekriach <<a href="mailto:o.nekriach@dynatech.lv" target="_blank">o.nekriach@dynatech.lv</a>> napísal(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi guys,</div><div>The short question about custom connector development.</div><div>I want to inform the IDM reconciliation engine about the situation "DELETED" for some user accounts that were deleted on the custom resource.<br></div><div>What should receive the handle() method on its input or what type of exception needs to be raised </div><div>to do this?<br></div><div><br></div><div>public void executeQuery(ObjectClass objectClass, Filter query, ResultsHandler handler, OperationOptions options) {</div><div>....<br></div><div>handler.handle(null); //  1. Removes shadow object  of deleted user  from IDM</div><div><br></div><div>throw new UnknownUidException(msg); // 2. Skips processing of account during reconciliation (the "Situation" leaves as is. LINKED for example) and marks shadow as "Dead shadow"  </div><div><br><br></div><div>Thank you for the help in advance <br></div><div><br></div><div><br></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(76,76,76)">Best regards, </span></div><div><span style="color:rgb(76,76,76)">Oleksandr<br></span></div><div dir="ltr"><span style="color:rgb(76,76,76)"><img src="cid:o.nekriach@dynatech.lv1520941785292-7770"> <br><br>Oleksandr Nekriach | Identity and access management engineer <br><br>Dynatech, <a href="https://www.google.com/maps/place/DYNATECH/@56.9575205,24.1107235,17z/data=!3m1!4b1!4m5!3m4!1s0x46eecf5753e42351:0x23b120b9745cae62!8m2!3d56.9575205!4d24.1129122" target="_blank">Jeruzalemes iela 1, Rīga, LV-1010, Latvia</a><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>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.lv1520941785292-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.lv1520941785292-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>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr">s pozdravom<div><br></div><div>Gustáv Pálos</div></div></div>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(76,76,76)">Best regards, <br><br><img src="cid:o.nekriach@dynatech.lv1520941785292-7770"> <br><br>Oleksandr Nekriach | Identity and access management engineer <br><br>Dynatech, <a href="https://www.google.com/maps/place/DYNATECH/@56.9575205,24.1107235,17z/data=!3m1!4b1!4m5!3m4!1s0x46eecf5753e42351:0x23b120b9745cae62!8m2!3d56.9575205!4d24.1129122" target="_blank">Jeruzalemes iela 1, Rīga, LV-1010, Latvia</a><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>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.lv1520941785292-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.lv1520941785292-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>