[midPoint] change assignment

Joan Carles joancarles.badia at udl.cat
Mon May 31 10:09:08 CEST 2021


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>



More information about the midPoint mailing list