<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<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" color="#000000" face="Calibri, sans-serif"><b>Lähettäjä:</b> midPoint <midpoint-bounces@lists.evolveum.com> käyttäjän puolestaRodrigo Yanis <ryanis@identicum.com><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"><br>
</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 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 href="mailto:ryanis@identicum.com" target="_blank"><font color="#0b5394">ryanis@identicum.com</font></a><br>
<a 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>
</body>
</html>