[midPoint] Issue with inbound mapping from singled-valued to multi-valued attribute

Javier Martinez jmartinez at identicum.com
Wed Jun 24 18:58:14 CEST 2020


Hi Jason,
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".

It worked with the solution given by Ivan.

Regards!



On Mon, Jun 22, 2020 at 5:02 PM Jason Everling <jeverling at bshp.edu> wrote:

> 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
>
>
>
>     <item>
>
>         <c:ref>c:organization</c:ref>
>
>         <limitations>
>
>             <layer>presentation</layer>
>
>             <minOccurs>0</minOccurs>
>
>             <maxOccurs>1</maxOccurs>
>
>         </limitations>
>
>     </item>
>
>
>
> *From: *Javier Martinez <jmartinez at identicum.com>
> *Sent: *Monday, June 22, 2020 2:16 PM
> *To: *midPoint General Discussion <midpoint at lists.evolveum.com>
> *Subject: *Re: [midPoint] Issue with inbound mapping from singled-valued
> to multi-valued attribute
>
>
>
> Hi,
>
> I added the the range as mentioned above:
>
>
> *<set>     <predefined>all</predefined>*
>
> *</set>*
>
>
>
> and it's working correctly, it now replaces the previous value instead of
> adding a new one.
>
>
>
> Thank you!
>
> Regards
>
>
>
> On Fri, Jun 19, 2020 at 1:01 PM Paulo Fernandes de Souza Junior <
> PFSJ at senado.leg.br> wrote:
>
> Hi,
>
>
>
> Take a look at
> https://wiki.evolveum.com/display/midPoint/Inbound+Mapping#InboundMapping-RangeOfInboundMappings
>>
>
>
> *Paulo Fernandes de Souza Júnior*
>
> *NQPPPS*Senado Federal - PRODASEN
> Fone: 61 3303.3924
>
>
>
> *De:* midPoint <midpoint-bounces at lists.evolveum.com> em nome de Javier
> Martinez <jmartinez at identicum.com>
> *Enviado:* quarta-feira, 17 de junho de 2020 11:23
> *Para:* midPoint General Discussion
> *Assunto:* [midPoint] Issue with inbound mapping from singled-valued to
> multi-valued attribute
>
>
>
> Hi,
>
> 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".
>
> Working OK in midpoint 3.9, but failing with midpoint 4.0.1 and above.
>
> Is there any way to keep this issue from happening?
>
> Regards
>
> --
>
> Javier Martínez
>
> Identicum S.A.
> Jorge Newbery 3226
> Tel: +54 (11) 4552-3050
> www.identicum.com
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
>
> --
>
> Javier Martínez
>
> Identicum S.A.
> Jorge Newbery 3226
> Tel: +54 (11) 4552-3050
> www.identicum.com
>
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
>


-- 
Javier Martínez
Identicum S.A.
Jorge Newbery 3226
Tel: +54 (11) 4552-3050
www.identicum.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200624/0dcf863d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 72D57AF3B91E4C6BBA29FA1EF5F12B90.png
Type: image/png
Size: 144 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20200624/0dcf863d/attachment.png>


More information about the midPoint mailing list