<html><head></head><body><div dir="auto">we do, add the object template to each reaction as needed and not there where you have it. Move it for all intents</div>
<div class="gmail_quote" >On May 18, 2019, at 13:43, Vladislavs Filipciks <<a href="mailto:vladislavs.filipciks@csolutions.lv" target="_blank">vladislavs.filipciks@csolutions.lv</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000"><div>Hello everyone.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Does any tried to use two or more objectTemplate in one resource synchronization? Is it even possible in MidPoint?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Resource look like:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div> <objectType><br> <kind>account</kind><br> <strong><intent>default</intent></strong><br> <displayName>CS Group User Account</displayName><br> <br> <objectClass>ri:user</objectClass><br data-mce-bogus="1"></div><div>...<br data-mce-bogus="1"></div><div> <!--StartFragment--></objectType><!--EndFragment--> </div><div><br data-mce-bogus="1"></div><div><objectType><br> <kind>account</kind><br> <strong> <intent>external</intent></strong><br> <displayName>CS AD External Account</displayName><br> <br> <objectClass>ri:user</objectClass><br data-mce-bogus="1"></div><div>....<br data-mce-bogus="1"></div><div></objectType><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><objectSynchronization><br> <name>Account sync</name><br> <objectClass>ri:user</objectClass><br> <kind>account</kind><br> <strong> <intent>default</intent></strong><br> <focusType>UserType</focusType><br> <enabled>true</enabled><br> <correlation><br> <q:equal><br> <q:path>c:name</q:path><br> <expression><br> <path>$shadow/attributes/sAMAccountName</path><br> </expression><br> </q:equal><br> </correlation><br> <strong><objectTemplateRef oid="666-666-111"/></strong><br data-mce-bogus="1"></div><div>...<br data-mce-bogus="1"></div><div></<!--StartFragment-->objectSynchronization><br data-mce-bogus="1"></div><div><strong><br data-mce-bogus="1"></strong></div><div><objectSynchronization><br> <name>External Account sync</name><br> <objectClass>ri:user</objectClass><br> <kind>account</kind><br> <strong><intent>external</intent></strong><br> <focusType>UserType</focusType><br> <enabled>true</enabled><br> <correlation><br> <q:equal><br> <q:path>c:name</q:path><br> <expression><br> <path>$shadow/attributes/sAMAccountName</path><br> </expression><br> </q:equal><br> </correlation></div><div><br> <strong> <objectTemplateRef oid="666-666-222"/></strong><br data-mce-bogus="1"></div><div>...<br data-mce-bogus="1"></div><div> <!--StartFragment--></objectSynchronization><!--EndFragment--> </div><div><br data-mce-bogus="1"></div><div>When I import account with intent <strong>default</strong> correct objectTemplate is used ( <!--StartFragment--><strong>666-666-111</strong><!--EndFragment--> ).<br data-mce-bogus="1"></div><div>But when I try to import account with intent <strong>external </strong>then the same objectTemplate from objectSynchronization of <strong>account/default</strong> is used - <!--StartFragment--> <strong>666-666-111</strong>, but I would like to use <!--StartFragment--><strong>666-666-222</strong><!--EndFragment--> for <!--StartFragment--><strong>account/external</strong>.<!--EndFragment--><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks in advance.<br data-mce-bogus="1"></div><div><strong><br data-mce-bogus="1"></strong></div></div><pre class="blue"><hr><br>midPoint mailing list<br>midPoint@lists.evolveum.com<br><a href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br></pre></blockquote></div></body></html>