<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Exactly. Inbound mappings are quite limited in functionality. It
      is generally advisable to use object templates. With new powerful
      features like mapping domain (3.5.1+) and range (3.6+, with basic
      support already in 3.5) one can fine-tune the mapping behavior:
      which values to tolerate and which to replace.</p>
    <p><br>
    </p>
    <p>Please see <a
href="https://wiki.evolveum.com/display/midPoint/Mapping#Mapping-MappingDomain">https://wiki.evolveum.com/display/midPoint/Mapping#Mapping-MappingDomain</a>
      and below.<br>
    </p>
    <pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
    <div class="moz-cite-prefix">On 09.02.2017 21:01, Mikko Pekkarinen
      wrote:<br>
    </div>
    <blockquote cite="mid:1486670466088.36447@datactica.fi" type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
      <p>Hello,</p>
      <p><br>
      </p>
      <p>I've had the same problem. I worked around it by not creating
        any assignments in the inbound mappings. Instead, I stored the
        relevant parameters in user's fields (organization in my case),
        and created the assignment in user template.</p>
      <p><br>
      </p>
      <p>Mikko<br>
      </p>
      <p><br>
      </p>
      <p><br>
      </p>
      <div style="color: rgb(33, 33, 33);">
        <hr tabindex="-1" style="display:inline-block; width:98%">
        <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
            face="Calibri, sans-serif" color="#000000"><b>Lähettäjä:</b>
            midPoint <a class="moz-txt-link-rfc2396E" href="mailto:midpoint-bounces@lists.evolveum.com"><midpoint-bounces@lists.evolveum.com></a>
            käyttäjän puolestaRodrigo Yanis <a class="moz-txt-link-rfc2396E" href="mailto:ryanis@identicum.com"><ryanis@identicum.com></a><br>
            <b>Lähetetty:</b> 9. helmikuuta 2017 21:50<br>
            <b>Vastaanottaja:</b> midPoint General Discussion<br>
            <b>Aihe:</b> [midPoint] Append assignments to previous user
            assignments</font>
          <div> </div>
        </div>
        <div>
          <div dir="ltr">Hello everyone,
            <div><br>
            </div>
            <div>I'm having issues keeping the user's previous
              assignments when a resource inbound mapping calculates and
              sets a list of assignments to that user.</div>
            <div><br>
            </div>
            <div>I've already tried with tolerant setting on the mapping
              (set to true), but it still removes the old assignments
              and inserts the new, calculated ones.</div>
            <div><br>
            </div>
            <div>Simplified inbound mapping look like this: </div>
            <div>
              <div>
                <div class="gmail_signature">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div>
                              <blockquote class="gmail_quote"
                                style="margin:0px 0px 0px 0.8ex;
                                border-left:1px solid rgb(204,204,204);
                                padding-left:1ex">
                                <font size="1"><inbound><br>
                                       <expression><br>
                                           <script><br>
                                               <code><br>
                                  <span class="gmail-Apple-tab-span" style="white-space:pre"></span>assignmentList
                                  = [];<br>
                                  <span class="gmail-Apple-tab-span" style="white-space:pre">...</span></font></blockquote>
                              <blockquote class="gmail_quote"
                                style="margin:0px 0px 0px 0.8ex;
                                border-left:1px solid rgb(204,204,204);
                                padding-left:1ex">
                                                  <font size="1">assignmentList,add(assignment);</font></blockquote>
                              <blockquote class="gmail_quote"
                                style="margin:0px 0px 0px 0.8ex;
                                border-left:1px solid rgb(204,204,204);
                                padding-left:1ex">
                                <font size="1">                       
                                  ...<span class="gmail-Apple-tab-span" style="white-space:pre">

</span><span class="gmail-Apple-tab-span" style="white-space:pre"></span>return
                                  assignmentList;<br>
                                  <span style="white-space:pre">  </span></code><br>
                                          </script><br>
                                      </expression><br>
                                      <target><br>
                                         
                                  <c:path>assignment</c:path><br>
                                      </target><br>
                                  </inbound></font></blockquote>
                            </div>
                            <div dir="ltr"><br>
                            </div>
                            <div>Do you know any setting I could try out
                              so already present assignments are not
                              removed?</div>
                            <div><br>
                            </div>
                            <div>Thanks,</div>
                            <div dir="ltr"><br>
                            </div>
                            <div dir="ltr"><font face="arial, helvetica,
                                sans-serif"><b>Rodrigo Yanis.</b><br>
                                <img moz-do-not-send="true"
                                  src="http://www.identicum.com/img/favicon.ico">Identicum
                                S.A.<br>
                              </font>Jorge Newbery 3226<br>
                              Tel: +54 (11) 4824-9971<font face="arial,
                                helvetica, sans-serif"><br>
                                <a moz-do-not-send="true"
                                  href="mailto:ryanis@identicum.com"
                                  target="_blank"><font color="#0b5394">ryanis@identicum.com</font></a><br>
                                <a moz-do-not-send="true"
                                  href="http://www.identicum.com/"
                                  target="_blank"><font color="#0b5394">www.identicum.com</font></a></font></div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </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>
  </body>
</html>