<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>yes certainly. Go to to same place where you define default user
      template (in GUI, but it differs a little for 3.7 and earlier
      versions), and add another entry using "+" button: object type =
      OrgType and refer to your template. Do not forget to save. And
      comment the template reference in the resource before trying.</p>
    <p>Ivan<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 19.01.2018 18:06, Alcides Carlos de
      Moraes Neto wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMLLNmm0C_F8VA-YGHSmeKPm+HLaH+s0Oc9ndn9DhcSerR4WuQ@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>Hi Ivan,<br>
            <br>
          </div>
          Yes, it is a resource referenced template for OrgType objects.
          I understand now why it doesn't work, thanks!<br>
          <br>
        </div>
        Is there a way to create a default Org Template in system
        configuration? I already have a default user template. <br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2018-01-19 14:45 GMT-02:00 Ivan Noris <span
            dir="ltr"><<a href="mailto:ivan.noris@evolveum.com"
              target="_blank" moz-do-not-send="true">ivan.noris@evolveum.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p>Hi,</p>
              <p>where is your object template? Is it global (i.e. set
                in System configuration) or is it a template in your
                resource referenced in your synchronization actions?</p>
              <p>Because if it's resource-referenced object template,
                maybe it is not processed if you change something in
                organization in midPoint. It should be however processed
                if the change comes from your resource.</p>
              <p>Globally configured object template with strong
                authoritative mappings should work in any case...</p>
              <p>Best regards,</p>
              <p>Ivan<br>
              </p>
              <div>
                <div class="h5"> <br>
                  <div class="m_-5969661209346151679moz-cite-prefix">On
                    19.01.2018 17:37, Alcides Carlos de Moraes Neto
                    wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>Hi Arnošt,<br>
                          </div>
                          <div><br>
                          </div>
                          The new mappings are all strong and
                          authoritative.</div>
                        <div><br>
                        </div>
                        I'm logging to TRACE and the template is not
                        even mentioned in the CLOCKWORK SUMMARY, and the
                        expressions are not called for existing objects,
                        only new ones.<br>
                      </div>
                      I tested deleting one Org and Reimporting it, and
                      that worked. But I cannot delete all the Org
                      Structure everytime I change the template...<br>
                      <br>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">2018-01-19 6:55 GMT-02:00
                        Arnošt Starosta - AMI Praha a.s. <span
                          dir="ltr"><<a
                            href="mailto:arnost.starosta@ami.cz"
                            target="_blank" moz-do-not-send="true">arnost.starosta@ami.cz</a>></span>:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div dir="ltr">Hi Carlos,
                            <div><br>
                            </div>
                            <div>is the strength of your mappings normal
                              or weak? Than they would be 'applied' to
                              existing objects, but since there is no
                              change in source attributes or target
                              attributes already have values, the
                              mapping would be skipped.</div>
                            <div><br>
                            </div>
                            <div>You can try changing the mapping
                              strength to strong to compute the target
                              values all the time.</div>
                            <div><br>
                            </div>
                            <div>arnost</div>
                          </div>
                          <div class="gmail_extra"><br>
                            <div class="gmail_quote">
                              <div>
                                <div class="m_-5969661209346151679h5">2018-01-18
                                  18:59 GMT+01:00 Alcides Carlos de
                                  Moraes Neto <span dir="ltr"><<a
                                      href="mailto:alcides.neto@gmail.com"
                                      target="_blank"
                                      moz-do-not-send="true">alcides.neto@gmail.com</a>></span>:<br>
                                </div>
                              </div>
                              <blockquote class="gmail_quote"
                                style="margin:0 0 0 .8ex;border-left:1px
                                #ccc solid;padding-left:1ex">
                                <div>
                                  <div class="m_-5969661209346151679h5">
                                    <div dir="ltr">
                                      <div>
                                        <div>
                                          <div>Hello List,<br>
                                            <br>
                                          </div>
                                          I have a very simple SQL
                                          Resource that creates Org
                                          Strutucture from HR System.<br>
                                        </div>
                                        <br>
                                      </div>
                                      <div>I have a Template for this
                                        resource and it is working OK. </div>
                                      <div>However, I made some changes
                                        to this template, added some
                                        mappings with conditions, and
                                        these are not applied to
                                        existing objects. I have tried
                                        Recompute, Reconcile, Import
                                        accounts.</div>
                                      <div>Only the new Orgs that were
                                        imported got the new
                                        mappings/assignments. <br>
                                      </div>
                                      <div><br>
                                      </div>
                                      <div>How can I apply my template
                                        changes to my existing objects?<br>
                                      </div>
                                    </div>
                                    <br>
                                  </div>
                                </div>
                                ______________________________<wbr>_________________<br>
                                midPoint mailing list<br>
                                <a
                                  href="mailto:midPoint@lists.evolveum.com"
                                  target="_blank" moz-do-not-send="true">midPoint@lists.evolveum.com</a><br>
                                <a
                                  href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                                  rel="noreferrer" target="_blank"
                                  moz-do-not-send="true">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
                                <br>
                              </blockquote>
                            </div>
                            <br>
                            <br clear="all">
                            <div><br>
                            </div>
                            -- <br>
                            <div
                              class="m_-5969661209346151679m_-888220827144659494gmail_signature"
                              data-smartmail="gmail_signature">
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr">
                                    <table
style="font-family:Verdana,Arial,Helvetica,sans-serif;border-collapse:collapse;padding:0px;margin:0px;border-width:0px!important;border-style:solid!important;width:482px!important">
                                      <tbody>
                                        <tr
                                          style="padding:0px;margin:0px;border:0px
                                          solid gray!important">
                                          <td
style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;width:160px;vertical-align:bottom;padding:0px;border:0px
                                            solid gray!important">
                                            <p><span
                                                style="font-size:14px;font-weight:bold">Arnošt
                                                Starosta</span><br>
                                              solution architect<br>
                                              <br>
                                              gsm: <a
                                                href="tel:+420%20603%20794%20932"
                                                value="+420603794932"
                                                target="_blank"
                                                moz-do-not-send="true">[+420]
                                                603 794 932</a><br>
                                              e-mail: <a
                                                href="mailto:arnost.starosta@ami.cz"
                                                target="_blank"
                                                moz-do-not-send="true">arnost.starosta@ami.cz</a></p>
                                          </td>
                                          <td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right:1px
                                            solid
                                            rgb(204,204,204);padding:0px;border-top:0px
                                            solid
                                            gray!important;border-bottom:0px
                                            solid
                                            gray!important;border-left:0px
                                            solid gray!important">   </td>
                                          <td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px
                                            solid gray!important">   </td>
                                          <td
style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;vertical-align:bottom;padding:0px;width:123px;border:0px
                                            solid gray!important">
                                            <p>AMI Praha a.s.<br>
                                              Pláničkova 11<br>
                                              162 00 Praha 6<br>
                                              tel.: <a
                                                href="tel:+420%20274%20783%20239"
                                                value="+420274783239"
                                                target="_blank"
                                                moz-do-not-send="true">[+420]
                                                274 783 239</a><br>
                                              web: <a
                                                href="http://www.ami.cz/"
                                                target="_blank"
                                                moz-do-not-send="true">www.ami.cz</a></p>
                                          </td>
                                          <td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;border-right:1px
                                            solid
                                            rgb(204,204,204);padding:0px;border-top:0px
                                            solid
                                            gray!important;border-bottom:0px
                                            solid
                                            gray!important;border-left:0px
                                            solid gray!important">   </td>
                                          <td
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;border:0px
                                            solid gray!important">   </td>
                                          <td
style="color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:11px;margin:8px;border:0px
                                            solid
                                            gray!important;width:116px">
                                            <p><img
                                                src="http://www.ami.cz/images/podpis/ami_logo.gif"
                                                alt="AMI Praha a.s."
                                                style="border:0px"
                                                moz-do-not-send="true"></p>
                                          </td>
                                        </tr>
                                        <tr
                                          style="padding:0px;margin:0px;border:0px
                                          solid gray!important">
                                          <td colspan="7"
style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10px;padding:0px;width:480px;border:0px
                                            solid gray!important"><br>
                                            <a
href="http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management"
                                              target="_blank"
                                              moz-do-not-send="true"><img
src="http://www.ami.cz/images/podpis/AMI-podpis-IdM_1.png" alt="AMI
                                                Praha a.s."
                                                style="border:0px;width:480px!important;height:82px!important"
                                                moz-do-not-send="true"></a></td>
                                        </tr>
                                        <tr
                                          style="padding:0px;margin:0px;border:0px
                                          solid gray!important">
                                          <td colspan="7"
style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:11px;padding:0px;border:0px
                                            solid gray!important"><br>
                                            Textem tohoto e-mailu
                                            podepisující neslibuje
                                            uzavřít ani neuzavírá za
                                            společnost AMI Praha a.s.<br>
                                            jakoukoliv smlouvu. Každá
                                            smlouva, pokud bude
                                            uzavřena, musí mít výhradně
                                            písemnou formu.<br>
                                            <br>
                                          </td>
                                        </tr>
                                      </tbody>
                                    </table>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                          <br>
                          ______________________________<wbr>_________________<br>
                          midPoint mailing list<br>
                          <a href="mailto:midPoint@lists.evolveum.com"
                            target="_blank" moz-do-not-send="true">midPoint@lists.evolveum.com</a><br>
                          <a
                            href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                            rel="noreferrer" target="_blank"
                            moz-do-not-send="true">http://lists.evolveum.com/mail<wbr>man/listinfo/midpoint</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset
                      class="m_-5969661209346151679mimeAttachmentHeader"></fieldset>
                    <br>
                    <pre>______________________________<wbr>_________________
midPoint mailing list
<a class="m_-5969661209346151679moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com" target="_blank" moz-do-not-send="true">midPoint@lists.evolveum.com</a>
<a class="m_-5969661209346151679moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank" moz-do-not-send="true">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
              <span class="HOEnZb"><font color="#888888">
                  <pre class="m_-5969661209346151679moz-signature" cols="72">-- 
Ivan Noris
Senior Identity Engineer
<a href="http://evolveum.com" target="_blank" moz-do-not-send="true">evolveum.com</a>
</pre>
                </font></span></div>
            <br>
            ______________________________<wbr>_________________<br>
            midPoint mailing list<br>
            <a href="mailto:midPoint@lists.evolveum.com"
              moz-do-not-send="true">midPoint@lists.evolveum.com</a><br>
            <a
              href="http://lists.evolveum.com/mailman/listinfo/midpoint"
              rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.evolveum.com/<wbr>mailman/listinfo/midpoint</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre>
  </body>
</html>