[midPoint] change assignment

Paulo Fernandes de Souza Junior PFSJ at senado.leg.br
Tue Jun 1 13:43:47 CEST 2021


Hi Joan,

You need to use:
                    <target>
                        <c:path>$focus/organization</c:path>
                        <set>
                            <predefined>all</predefined>
                        </set>
                    </target>

in the schemaHandling definition. Take a look at 
https://docs.evolveum.com/midpoint/reference/expressions/mappings/inbound-mapping/#range-of-inbound-mappings


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 Joan Carles via midPoint <midpoint at lists.evolveum.com>
Enviado: segunda-feira, 31 de maio de 2021 05:09
Para: midpoint at lists.evolveum.com
Cc: Joan Carles
Assunto: [midPoint] change assignment

Hello everybody,

Do you know how I have to configure synchronization in a resource, in
order to change organization assignment in midpoint, when it changes in
origin?

When I use reconcile, midpoint add the new assigment, but without
deleting the older. As a result I have two assignments. I want to
substitute the old by the new assignment.

Thank you!!

Here is my code:

   <synchronization>

         <objectSynchronization>
             <name>sincronitza_departaments</name>
<objectClass>AccountObjectClass</objectClass>
             <kind>generic</kind>
             <intent>orgunit</intent>
             <focusType>c:OrgType</focusType>
             <enabled>true</enabled>
             <correlation>
                 <q:equal xmlns="">
                     <q:path>identifier</q:path>
                     <expression xmlns="">
<path>$focus/attributes/orgnum</path>
                     </expression>
                 </q:equal>
             </correlation>
             <reconcile>false</reconcile>
             <opportunistic>true</opportunistic>
             <reaction>
                 <situation>linked</situation>
                 <synchronize>true</synchronize>
                 <reconcile>false</reconcile>
                 <action>
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink</handlerUri>
                     <order>before</order>
                 </action>
                 <action>
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#link</handlerUri>
                     <order>after</order>
                 </action>
             </reaction>
             <reaction>
                 <situation>deleted</situation>
                 <synchronize>true</synchronize>
                 <action>
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#deleteFocus</handlerUri>
                 </action>
             </reaction>
             <reaction>
                 <situation>unlinked</situation>
                 <synchronize>true</synchronize>
                 <action>
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#link</handlerUri>
                 </action>
             </reaction>
             <reaction>
                 <situation>unmatched</situation>
                 <synchronize>true</synchronize>
                 <reconcile>false</reconcile>
                 <action>
<handlerUri>http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus</handlerUri>
                 </action>
             </reaction>
         </objectSynchronization>
     </synchronization>

_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
https://lists.evolveum.com/mailman/listinfo/midpoint


More information about the midPoint mailing list