<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Robert,</p>
    <p>sounds familiar... could you be hiting
      <a class="moz-txt-link-freetext" href="https://jira.evolveum.com/browse/MID-8369">https://jira.evolveum.com/browse/MID-8369</a>?</p>
    <p>(But this bug was reported for midpoint 4.6.x with new resource
      syntax, I don't know which version you have.)</p>
    <p>Best regards,</p>
    <p>Ivan<br>
    </p>
    <div class="moz-cite-prefix">On 4. 1. 2023 15:11, Robert Segall via
      midPoint wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:ZRAP278MB06414EF66E12C0F9739992B4F3F59@ZRAP278MB0641.CHEP278.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style>@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}div.WordSection1
        {page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="DE-CH">Hallo everybody<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="DE-CH"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">We seem to have an issue
            with deletion.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">In the “Synchronisation”
            section of the resource we have<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">…<o:p></o:p></span></p>
        <p class="MsoNormal" style="background:white"><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000"><</span><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:navy;background:#EFEFEF;mso-fareast-language:#1000">reaction</span></b><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000">></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;mso-fareast-language:#1000"><br>
                <span style="background:#EFEFEF"><</span></span><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:navy;background:#EFEFEF;mso-fareast-language:#1000">situation</span></b><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000">></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;mso-fareast-language:#1000">deleted<span
              style="background:#EFEFEF"></</span></span><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:navy;background:#EFEFEF;mso-fareast-language:#1000">situation</span></b><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000">></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;mso-fareast-language:#1000"><br>
                <span style="background:#EFEFEF"><</span></span><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:navy;background:#EFEFEF;mso-fareast-language:#1000">synchronize</span></b><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000">></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;mso-fareast-language:#1000">true<span
              style="background:#EFEFEF"></</span></span><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:navy;background:#EFEFEF;mso-fareast-language:#1000">synchronize</span></b><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000">></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;mso-fareast-language:#1000"><br>
                <span style="background:#EFEFEF"><</span></span><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:navy;background:#EFEFEF;mso-fareast-language:#1000">reconcile</span></b><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000">></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;mso-fareast-language:#1000">true<span
              style="background:#EFEFEF"></</span></span><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:navy;background:#EFEFEF;mso-fareast-language:#1000">reconcile</span></b><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000">></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;mso-fareast-language:#1000"><br>
                <span style="background:#EFEFEF"><</span></span><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:navy;background:#EFEFEF;mso-fareast-language:#1000">action</span></b><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000">></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;mso-fareast-language:#1000"><br>
                    <span style="background:#EFEFEF"><</span></span><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:navy;background:#EFEFEF;mso-fareast-language:#1000">handlerUri</span></b><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000">></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;mso-fareast-language:#1000"><a
href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink</handlerUri"
              moz-do-not-send="true">http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink<span
                style="background:#EFEFEF"></<b>handlerUri</b></span></a><span
              style="background:#EFEFEF">></span><br>
                <span style="background:#EFEFEF"></</span></span><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:navy;background:#EFEFEF;mso-fareast-language:#1000">action</span></b><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000">></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;mso-fareast-language:#1000"><br>
            <span style="background:#EFEFEF"></</span></span><b><span
              style="font-size:10.0pt;font-family:"Courier
              New";color:navy;background:#EFEFEF;mso-fareast-language:#1000">reaction</span></b><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;background:#EFEFEF;mso-fareast-language:#1000">></span><span
            style="font-size:10.0pt;font-family:"Courier
            New";color:black;mso-fareast-language:#1000"><o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">…<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">But after the record is
            deleted (it is a ScriptedSQL resource) the
            <b>shadow</b> is deleted but the <b>user</b> keeps a
            linkRef with a pointer to the no longer extant shadow and
            the wrong link count!<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span lang="EN-GB">Anybody seen this before
            or has any ideas what could be done about it?<o:p></o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"
          style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:DE-CH"
            lang="DE-CH">Mit freundlichen Grüssen / Best regards,<o:p></o:p></span></p>
        <table class="MsoTableGrid"
          style="width:437.7pt;border-collapse:collapse;border:none"
          width="584" cellspacing="0" cellpadding="0" border="0">
          <tbody>
            <tr>
              <td style="width:300.0pt;padding:0cm 5.4pt 0cm 5.4pt"
                width="400" valign="top">
                <p class="MsoNormal"><b><span
style="font-family:"Verdana",sans-serif;color:black;mso-fareast-language:DE-CH"
                      lang="EN-GB">Robert Segall</span></b><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#878787;mso-fareast-language:DE-CH"
                    lang="EN-GB"><br>
                    Senior Consultant<o:p></o:p></span></p>
              </td>
              <td style="width:137.7pt;padding:0cm 5.4pt 0cm 5.4pt"
                width="184" valign="top">
                <p class="MsoNormal" style="text-align:right"
                  align="right"><span lang="DE-CH"><a
                      href="https://www.itconcepts.ch/" target="_blank"
                      moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#337AB7;mso-fareast-language:DE-CH;text-decoration:none"><img
                          style="width:1.5625in;height:.4166in"
                          id="Grafik_x0020_4"
                          src="cid:part1.rjvlCefs.8KIaGuOE@evolveum.com"
                          alt="itc-logo" class="" width="150"
                          height="40" border="0"></span></a></span><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#444444;mso-fareast-language:DE-CH"
                    lang="DE-CH"><o:p></o:p></span></p>
              </td>
            </tr>
            <tr>
              <td colspan="2" style="width:437.7pt;padding:0cm 5.4pt 0cm
                5.4pt" width="584" valign="top">
                <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#444444;mso-fareast-language:DE-CH"
                    lang="DE-CH"> <o:p></o:p></span></p>
              </td>
            </tr>
            <tr style="height:1.05pt">
              <td style="width:300.0pt;padding:0cm 5.4pt 0cm
                5.4pt;height:1.05pt" width="400" valign="top">
                <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#4B4040;mso-fareast-language:DE-CH"
                      lang="DE-CH">ITConcepts Professional GmbH</span></b><b><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2C2C2C;mso-fareast-language:DE-CH"
                      lang="DE-CH"><o:p></o:p></span></b></p>
              </td>
              <td rowspan="5" style="width:137.7pt;padding:0cm 5.4pt 0cm
                5.4pt;height:1.05pt" width="184" valign="top">
                <p class="MsoNormal" style="text-align:right"
                  align="right"><span lang="DE-CH"><a
                      href="https://www.kununu.com/ch/itconcepts-bsm-schweiz"
                      moz-do-not-send="true"><span
                        style="color:windowtext;text-decoration:none"><img
                          style="width:.7708in;height:1.0312in"
                          id="Grafik_x0020_5"
                          src="cid:part2.pngDC7DG.X0xJjmSi@evolveum.com"
                          class="" width="74" height="99" border="0"></span></a></span><b><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2C2C2C;mso-fareast-language:DE-CH"
                      lang="DE-CH"><o:p></o:p></span></b></p>
              </td>
            </tr>
            <tr style="height:11.95pt">
              <td style="width:300.0pt;padding:0cm 5.4pt 0cm
                5.4pt;height:11.95pt" width="400" valign="top">
                <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#4B4040;mso-fareast-language:DE-CH"
                    lang="DE-CH">Grundstrasse 10</span><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#2C2C2C;mso-fareast-language:DE-CH"
                    lang="DE-CH"><o:p></o:p></span></p>
              </td>
            </tr>
            <tr style="height:1.05pt">
              <td style="width:300.0pt;padding:0cm 5.4pt 0cm
                5.4pt;height:1.05pt" width="400" valign="top">
                <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#4B4040;mso-fareast-language:DE-CH"
                    lang="DE-CH">6343 Rotkreuz<b><o:p></o:p></b></span></p>
              </td>
            </tr>
            <tr style="height:1.05pt">
              <td style="width:300.0pt;padding:0cm 5.4pt 0cm
                5.4pt;height:1.05pt" width="400" valign="top">
                <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#4B4040;mso-fareast-language:DE-CH"
                    lang="DE-CH">t: +41 (0)41 790 33 33</span><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#4B4040;mso-fareast-language:DE-CH"
                    lang="DE-CH"><o:p></o:p></span></p>
                <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#4B4040;mso-fareast-language:DE-CH"
                    lang="DE-CH">m: +41 (0)78 794 59 55</span><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#2C2C2C;mso-fareast-language:DE-CH"
                    lang="DE-CH"><o:p></o:p></span></p>
              </td>
            </tr>
            <tr style="height:1.05pt">
              <td style="width:300.0pt;padding:0cm 5.4pt 0cm
                5.4pt;height:1.05pt" width="400" valign="top">
                <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;mso-fareast-language:DE-CH"
                    lang="DE-CH"><a
                      href="mailto:robert.segall@itconcepts.ch"
                      moz-do-not-send="true"><span style="color:#0563C1">r</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0563C1;mso-fareast-language:EN-US">obert.segall</span><span
                        style="color:#0563C1">@itconcepts.ch</span></a><b><span
                        style="color:#4B4040"><o:p></o:p></span></b></span></p>
              </td>
            </tr>
            <tr>
              <td colspan="2" style="width:437.7pt;padding:0cm 5.4pt 0cm
                5.4pt" width="584" valign="top">
                <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#444444;mso-fareast-language:DE-CH"
                    lang="DE-CH"> <o:p></o:p></span></p>
              </td>
            </tr>
            <tr style="height:11.25pt">
              <td style="width:300.0pt;padding:0cm 5.4pt 0cm
                5.4pt;height:11.25pt" width="400" valign="top">
                <p class="MsoNormal"><span lang="DE-CH"><a
                      href="https://www.itconcepts.ch/" target="_blank"
                      moz-do-not-send="true"><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#E32121;mso-fareast-language:DE-CH">https://www.itconcepts.ch/</span></b></a></span><b><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#E32121;mso-fareast-language:DE-CH"
                      lang="DE-CH"><o:p></o:p></span></b></p>
              </td>
              <td style="width:137.7pt;padding:0cm 5.4pt 0cm
                5.4pt;height:11.25pt" width="184" valign="top">
                <p class="MsoNormal" style="text-align:right"
                  align="right"><span lang="DE-CH"><a
                      href="https://www.facebook.com/itconcepts.ch/"
                      target="_blank" moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#337AB7;mso-fareast-language:DE-CH;text-decoration:none"><img
                          style="width:.1562in;height:.1562in"
                          id="Grafik_x0020_3"
                          src="cid:part3.I9rqSuH0.qg2FjsQI@evolveum.com"
                          class="" width="15" height="15" border="0"></span></a></span><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#444444;mso-fareast-language:DE-CH"
                    lang="DE-CH">   </span><span lang="DE-CH"><a
                      href="https://www.linkedin.com/company/itconcepts-bsm/"
                      target="_blank" moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#337AB7;mso-fareast-language:DE-CH;text-decoration:none"><img
                          style="width:.1562in;height:.1562in"
                          id="Grafik_x0020_2"
                          src="cid:part4.Frqb3oEt.OaUM68a0@evolveum.com"
                          class="" width="15" height="15" border="0"></span></a></span><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#444444;mso-fareast-language:DE-CH"
                    lang="DE-CH">   </span><span lang="DE-CH"><a
                      href="https://twitter.com/itconceptsch?lang=de"
                      target="_blank" moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#337AB7;mso-fareast-language:DE-CH;text-decoration:none"><img
                          style="width:.1562in;height:.1562in"
                          id="Grafik_x0020_1"
                          src="cid:part5.GkqfYRoH.EfqJdllo@evolveum.com"
                          class="" width="15" height="15" border="0"></span></a></span><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#444444;mso-fareast-language:DE-CH"
                    lang="DE-CH">   <o:p></o:p></span></p>
              </td>
            </tr>
            <tr style="height:11.25pt">
              <td colspan="2" style="width:437.7pt;padding:0cm 5.4pt 0cm
                5.4pt;height:11.25pt" width="584" valign="top">
                <p class="MsoNormal"><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#337AB7;mso-fareast-language:DE-CH"
                    lang="DE-CH"><o:p> </o:p></span></p>
                <p class="MsoNormal"><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:DE-CH"
                      lang="DE-CH">Kennen Sie bereits unseren
                    </span></b><span lang="DE-CH"><a
                      href="https://www.youtube.com/channel/UCkwk9_n_WYPlZCgLjUdb0EA"
                      moz-do-not-send="true"><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#0563C1;mso-fareast-language:DE-CH">Youtube
                          Kanal</span></b></a></span><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:DE-CH"
                      lang="DE-CH">?</span></b><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:DE-CH"
                      lang="DE-CH"><o:p></o:p></span></b></p>
                <p class="MsoNormal"><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:black;mso-fareast-language:DE-CH"
                      lang="DE-CH"><o:p> </o:p></span></b></p>
                <p class="MsoNormal"><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#222222;mso-fareast-language:DE-CH"
                      lang="DE-CH">20 Jahre ITConcepts
                    </span></b><span lang="DE-CH"><a
                      href="https://youtu.be/KdjKp9mVxrs"
                      target="_blank" moz-do-not-send="true"><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;color:#E32121;mso-fareast-language:DE-CH">Zum
                        Video</span></a></span><b><span
style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:#222222;mso-fareast-language:DE-CH"
                      lang="DE-CH">
                    </span></b><b><span
style="font-size:9.0pt;font-family:"Verdana",sans-serif;mso-fareast-language:DE-CH"
                      lang="DE-CH"><o:p></o:p></span></b></p>
              </td>
            </tr>
          </tbody>
        </table>
        <p class="MsoNormal"><span style="mso-fareast-language:#1000"><o:p> </o:p></span></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Ivan Noris
Expert Identity Engineer
evolveum.com
</pre>
  </body>
</html>