<div dir="ltr">Hi Jason,<div>Thank you very much for your answer, we tried with this approach and when we tried to change the value of a user, we got the error "Expected one value for attribute organization, got 2".</div><div><br></div><div>It worked with the solution given by Ivan.</div><div><br></div><div>Regards!</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 22, 2020 at 5:02 PM Jason Everling <<a href="mailto:jeverling@bshp.edu">jeverling@bshp.edu</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 lang="EN-US"><div class="gmail-m_-6836164064331034076WordSection1"><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle">You can also remove the multi-value capability from the gui using the default user template, it just prevents some user from adding an additional value if you really want it to be single-valued only<u></u><u></u></span></p><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle"><u></u> <u></u></span></p><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle">    <item><u></u><u></u></span></p><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle">        <c:ref>c:organization</c:ref><u></u><u></u></span></p><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle">        <limitations><u></u><u></u></span></p><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle">            <layer>presentation</layer><u></u><u></u></span></p><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle">            <minOccurs>0</minOccurs><u></u><u></u></span></p><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle">            <maxOccurs>1</maxOccurs><u></u><u></u></span></p><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle">        </limitations><u></u><u></u></span></p><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle">    </item><u></u><u></u></span></p><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle"><u></u> <u></u></span></p><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in"><p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:jmartinez@identicum.com" target="_blank">Javier Martinez</a><br><b>Sent: </b>Monday, June 22, 2020 2:16 PM<br><b>To: </b><a href="mailto:midpoint@lists.evolveum.com" target="_blank">midPoint General Discussion</a><br><b>Subject: </b>Re: [midPoint] Issue with inbound mapping from singled-valued to multi-valued attribute</p></div><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle"><u></u> <u></u></span></p><div><p class="MsoNormal">Hi,</p><div><p class="MsoNormal">I added the the range as mentioned above:</p></div><div><p class="MsoNormal"><b><set><br>     <predefined>all</predefined></b></p></div><div><p class="MsoNormal"><b></set></b></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">and it's working correctly, it now replaces the previous value instead of adding a new one.</p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Thank you!</p></div><div><p class="MsoNormal">Regards</p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Fri, Jun 19, 2020 at 1:01 PM Paulo Fernandes de Souza Junior <<a href="mailto:PFSJ@senado.leg.br" target="_blank">PFSJ@senado.leg.br</a>> wrote:</p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in"><div><p style="background:white"><span style="font-size:12pt;color:black">Hi, <u></u><u></u></span></p><p style="background:white"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p><p style="background:white"><span style="font-size:12pt;color:black">Take a look at <a href="https://wiki.evolveum.com/display/midPoint/Inbound+Mapping#InboundMapping-RangeOfInboundMappings" target="_blank">https://wiki.evolveum.com/display/midPoint/Inbound+Mapping#InboundMapping-RangeOfInboundMappings</a>​<u></u><u></u></span></p><p style="background:white"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p><div id="gmail-m_-6836164064331034076gmail-m_-6047886692798043340Signature"><div><div><div><div><div><p class="MsoNormal" style="margin-bottom:12pt;background:white"><b><span style="font-size:10pt;font-family:"Times New Roman",serif;color:rgb(31,73,125)">Paulo Fernandes de Souza Júnior</span></b><span style="font-size:12pt;font-family:"Times New Roman",serif;color:black"> <br></span><b><span style="font-size:8pt;font-family:"Times New Roman",serif;color:rgb(31,73,125)">NQPPPS<br></span></b><span style="font-size:8pt;font-family:"Times New Roman",serif;color:rgb(23,54,93)">Senado Federal - </span><span style="font-size:8pt;font-family:"Times New Roman",serif;color:rgb(31,73,125)">PRODASEN<br></span><span style="font-size:8pt;font-family:"Times New Roman",serif;color:rgb(23,54,93)">Fone: 61 3303.3924</span><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:black"> <u></u><u></u></span></p><p class="MsoNormal" style="background:white"><span style="font-size:10pt;font-family:Tahoma,sans-serif;color:black"><u></u> <u></u></span></p></div></div></div></div></div></div><div><p class="MsoNormal" style="background:white"><span style="font-size:12pt;color:rgb(33,33,33)"><img border="0" width="688" height="2" style="width: 7.1666in; height: 0.0208in;" id="gmail-m_-6836164064331034076Horizontal_x0020_Line_x0020_1" src="cid:172e74272c01f370c1a1"></span><span style="font-size:12pt;color:rgb(33,33,33)"><u></u><u></u></span></p><div id="gmail-m_-6836164064331034076gmail-m_-6047886692798043340divRplyFwdMsg"><p class="MsoNormal" style="background:white"><b><span style="color:black">De:</span></b><span style="color:black"> midPoint <<a href="mailto:midpoint-bounces@lists.evolveum.com" target="_blank">midpoint-bounces@lists.evolveum.com</a>> em nome de Javier Martinez <<a href="mailto:jmartinez@identicum.com" target="_blank">jmartinez@identicum.com</a>><br><b>Enviado:</b> quarta-feira, 17 de junho de 2020 11:23<br><b>Para:</b> midPoint General Discussion<br><b>Assunto:</b> [midPoint] Issue with inbound mapping from singled-valued to multi-valued attribute</span><span style="font-size:12pt;color:rgb(33,33,33)"> <u></u><u></u></span></p><div><p class="MsoNormal" style="background:white"><span style="font-size:12pt;color:rgb(33,33,33)"> <u></u><u></u></span></p></div></div><div><div><div><div><p class="MsoNormal" style="background:white"><span style="font-size:10.5pt;font-family:Roboto;color:rgb(32,33,36)">Hi,</span><span style="font-size:12pt;color:rgb(33,33,33)"><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:white"><span style="font-size:10.5pt;font-family:Roboto;color:rgb(32,33,36)">We are having an issue when having an inbound mapping from a single-valued attribute to a multi-valued attribute. When modifying the value from the resource, instead of replacing the value, it is adding new values to the attribute in midPoint. Tested with attributes "organization" and "subtype".</span><span style="font-size:12pt;color:rgb(33,33,33)"><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:white"><span style="font-size:10.5pt;font-family:Roboto;color:rgb(32,33,36)">Working OK in midpoint 3.9, but failing with midpoint 4.0.1 and above.</span><span style="font-size:12pt;color:rgb(33,33,33)"><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:white"><span style="font-size:10.5pt;font-family:Roboto;color:rgb(32,33,36)">Is there any way to keep this issue from happening?</span><span style="font-size:12pt;color:rgb(33,33,33)"><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:white"><span style="font-size:10.5pt;font-family:Roboto;color:rgb(32,33,36)">Regards</span><span style="font-size:12pt;color:rgb(33,33,33)"><u></u><u></u></span></p></div></div><div><p class="MsoNormal" style="background:white"><span style="font-size:12pt;color:rgb(33,33,33)">-- <u></u><u></u></span></p><div><div><div><p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:black;background:white">Javier Martínez</span><span style="font-size:12pt;color:rgb(33,33,33)"><u></u><u></u></span></p></div><p class="MsoNormal" style="background:white"><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(153,153,153)">Identicum S.A.</span><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(33,33,33)"><br></span><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(153,153,153)">Jorge Newbery 3226</span><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(33,33,33)"><br></span><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(153,153,153)">Tel: +54 (11) 4552-3050</span><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(33,33,33)"><br></span><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(153,153,153)"><a href="http://www.identicum.com/" target="_blank"><span style="color:rgb(17,85,204)">www.identicum.com</span></a></span><span style="font-size:12pt;color:rgb(33,33,33)"> <u></u><u></u></span></p><div><p class="MsoNormal" style="background:white"><span style="font-size:12pt;color:rgb(33,33,33)"><u></u> <u></u></span></p></div></div></div></div></div></div></div></div><p class="MsoNormal">_______________________________________________<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" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a></p></blockquote></div><p class="MsoNormal"><br clear="all"></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- </p><div><div><div><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:black;background:white">Javier Martínez</span></p></div><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Arial,sans-serif;color:rgb(153,153,153)">Identicum S.A.</span><span style="font-size:9.5pt;font-family:Arial,sans-serif"><br><span style="color:rgb(153,153,153)">Jorge Newbery 3226</span><br><span style="color:rgb(153,153,153)">Tel: +54 (11) 4552-3050</span><br><span style="color:rgb(153,153,153)"><a href="http://www.identicum.com/" target="_blank"><span style="color:rgb(17,85,204)">www.identicum.com</span></a></span></span></p></div></div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span class="gmail-m_-6836164064331034076DefaultFontHxMailStyle"><u></u> <u></u></span></p></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" class="gmail_signature"><div dir="ltr"><div><font face="arial, helvetica, sans-serif" style="font-size:12.8px"><font style="background-color:rgb(255,255,255)" color="#000000">Javier Martínez</font></font></div><font face="arial, helvetica, sans-serif" style="font-size:12.8px"><font color="#999999">Identicum S.A.</font><br><font color="#999999">Jorge Newbery 3226</font><br><font color="#999999">Tel: +54 (11) 4552-3050</font><br><font color="#999999"><a href="http://www.identicum.com/" style="color:rgb(17,85,204)" target="_blank">www.identicum.com</a></font></font><div style="font-size:12.8px"></div><div><font face="arial, helvetica, sans-serif" style="font-size:12.8px"><br></font></div></div></div>