<html><body><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></body></html>