<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><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 Definitions */
@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:Ubuntu;
        panose-1:2 11 5 4 3 6 2 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Roboto;
        panose-1:2 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.DefaultFontHxMailStyle
        {mso-style-name:"Default Font HxMail Style";
        font-family:"Ubuntu",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
span.gmail-m-6836164064331034076defaultfonthxmailstyle
        {mso-style-name:gmail-m_-6836164064331034076defaultfonthxmailstyle;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span class=DefaultFontHxMailStyle>Yes, it doesn’t fix the inbound stuff, it is merely a fix to prevent an end user from adding multiple values<o:p></o:p></span></p><p class=MsoNormal><span class=DefaultFontHxMailStyle><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:jmartinez@identicum.com">Javier Martinez</a><br><b>Sent: </b>Wednesday, June 24, 2020 11:58 AM<br><b>To: </b><a href="mailto:midpoint@lists.evolveum.com">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=DefaultFontHxMailStyle><o:p> </o:p></span></p><div><p class=MsoNormal>Hi Jason,</p><div><p class=MsoNormal>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".</p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>It worked with the solution given by Ivan.</p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Regards!</p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Mon, Jun 22, 2020 at 5:02 PM Jason Everling <<a href="mailto:jeverling@bshp.edu">jeverling@bshp.edu</a>> wrote:</p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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</span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle> </span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle>    <item></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle>        <c:ref>c:organization</c:ref></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle>        <limitations></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle>            <layer>presentation</layer></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle>            <minOccurs>0</minOccurs></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle>            <maxOccurs>1</maxOccurs></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle>        </limitations></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle>    </item></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle> </span></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><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 style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle> </span></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi,</p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I added the the range as mentioned above:</p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><set><br>     <predefined>all</predefined></b></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b></set></b></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>and it's working correctly, it now replaces the previous value instead of adding a new one.</p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Thank you!</p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Regards</p></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'><div><p style='background:white'><span style='font-size:12.0pt;color:black'>Hi, </span></p><p style='background:white'><span style='font-size:12.0pt;color:black'> </span></p><p style='background:white'><span style='font-size:12.0pt;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>​</span></p><p style='background:white'><span style='font-size:12.0pt;color:black'> </span></p><div id="gmail-m_-6836164064331034076gmail-m_-6047886692798043340Signature"><div><div><div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt;background:white'><b><span style='font-size:10.0pt;font-family:"Times New Roman",serif;color:#1F497D'>Paulo Fernandes de Souza Júnior</span></b><span style='font-size:12.0pt;font-family:"Times New Roman",serif;color:black'> <br></span><b><span style='font-size:8.0pt;font-family:"Times New Roman",serif;color:#1F497D'>NQPPPS<br></span></b><span style='font-size:8.0pt;font-family:"Times New Roman",serif;color:#17365D'>Senado Federal - </span><span style='font-size:8.0pt;font-family:"Times New Roman",serif;color:#1F497D'>PRODASEN<br></span><span style='font-size:8.0pt;font-family:"Times New Roman",serif;color:#17365D'>Fone: 61 3303.3924</span><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black'> </span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:10.0pt;font-family:"Tahoma",sans-serif;color:black'> </span></p></div></div></div></div></div></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:12.0pt;color:#212121'><img border=0 width=688 height=2 style='width:7.1666in;height:.0208in' id="gmail-m_-6836164064331034076Horizontal_x0020_Line_x0020_1" src="cid:172e74272c01f370c1a1"></span></p><div id="gmail-m_-6836164064331034076gmail-m_-6047886692798043340divRplyFwdMsg"><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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:12.0pt;color:#212121'> </span></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:12.0pt;color:#212121'> </span></p></div></div><div><div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:10.5pt;font-family:Roboto;color:#202124'>Hi,</span></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:10.5pt;font-family:Roboto;color:#202124'>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></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:10.5pt;font-family:Roboto;color:#202124'>Working OK in midpoint 3.9, but failing with midpoint 4.0.1 and above.</span></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:10.5pt;font-family:Roboto;color:#202124'>Is there any way to keep this issue from happening?</span></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:10.5pt;font-family:Roboto;color:#202124'>Regards</span></p></div></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:12.0pt;color:#212121'>-- </span></p><div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:9.5pt;font-family:"Arial",sans-serif;color:black;background:white'>Javier Martínez</span></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:9.5pt;font-family:"Arial",sans-serif;color:#999999'>Identicum S.A.</span><span style='font-size:9.5pt;font-family:"Arial",sans-serif;color:#212121'><br></span><span style='font-size:9.5pt;font-family:"Arial",sans-serif;color:#999999'>Jorge Newbery 3226</span><span style='font-size:9.5pt;font-family:"Arial",sans-serif;color:#212121'><br></span><span style='font-size:9.5pt;font-family:"Arial",sans-serif;color:#999999'>Tel: +54 (11) 4552-3050</span><span style='font-size:9.5pt;font-family:"Arial",sans-serif;color:#212121'><br></span><span style='font-size:9.5pt;font-family:"Arial",sans-serif;color:#999999'><a href="http://www.identicum.com/" target="_blank"><span style='color:#1155CC'>www.identicum.com</span></a></span><span style='font-size:12.0pt;color:#212121'> </span></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:white'><span style='font-size:12.0pt;color:#212121'> </span></p></div></div></div></div></div></div></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>_______________________________________________<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 style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><br clear=all></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>-- </p><div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.5pt;font-family:"Arial",sans-serif;color:black;background:white'>Javier Martínez</span></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:9.5pt;font-family:"Arial",sans-serif;color:#999999'>Identicum S.A.</span><span style='font-size:9.5pt;font-family:"Arial",sans-serif'><br><span style='color:#999999'>Jorge Newbery 3226</span><br><span style='color:#999999'>Tel: +54 (11) 4552-3050</span><br><span style='color:#999999'><a href="http://www.identicum.com/" target="_blank"><span style='color:#1155CC'>www.identicum.com</span></a></span></span></p></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> </p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span class=gmail-m-6836164064331034076defaultfonthxmailstyle> </span></p></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><o:p> </o:p></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:#999999'>Identicum S.A.</span><span style='font-size:9.5pt;font-family:"Arial",sans-serif'><br><span style='color:#999999'>Jorge Newbery 3226</span><br><span style='color:#999999'>Tel: +54 (11) 4552-3050</span><br><span style='color:#999999'><a href="http://www.identicum.com/" target="_blank"><span style='color:#1155CC'>www.identicum.com</span></a></span></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span class=DefaultFontHxMailStyle><o:p> </o:p></span></p></div></body></html>