[midPoint] Two (or more) objectTemplate in resource sync

Vladislavs Filipciks vladislavs.filipciks at csolutions.lv
Sat May 18 20:43:43 CEST 2019


Hello everyone. 

Does any tried to use two or more objectTemplate in one resource synchronization? Is it even possible in MidPoint? 

Resource look like: 

<objectType> 
<kind>account</kind> 
<intent>default</intent> 
<displayName>CS Group User Account</displayName> 

<objectClass>ri:user</objectClass> 
... 
</objectType> 

<objectType> 
<kind>account</kind> 
<intent>external</intent> 
<displayName>CS AD External Account</displayName> 

<objectClass>ri:user</objectClass> 
.... 
</objectType> 

<objectSynchronization> 
<name>Account sync</name> 
<objectClass>ri:user</objectClass> 
<kind>account</kind> 
<intent>default</intent> 
<focusType>UserType</focusType> 
<enabled>true</enabled> 
<correlation> 
<q:equal> 
<q:path>c:name</q:path> 
<expression> 
<path>$shadow/attributes/sAMAccountName</path> 
</expression> 
</q:equal> 
</correlation> 
<objectTemplateRef oid="666-666-111"/> 
... 
</ objectSynchronization> 

<objectSynchronization> 
<name>External Account sync</name> 
<objectClass>ri:user</objectClass> 
<kind>account</kind> 
<intent>external</intent> 
<focusType>UserType</focusType> 
<enabled>true</enabled> 
<correlation> 
<q:equal> 
<q:path>c:name</q:path> 
<expression> 
<path>$shadow/attributes/sAMAccountName</path> 
</expression> 
</q:equal> 
</correlation> 

<objectTemplateRef oid="666-666-222"/> 
... 
</objectSynchronization> 

When I import account with intent default correct objectTemplate is used ( 666-666-111 ). 
But when I try to import account with intent external then the same objectTemplate from objectSynchronization of account/default is used - 666-666-111 , but I would like to use 666-666-222 for account/external . 

Thanks in advance. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20190518/5892d688/attachment.htm>


More information about the midPoint mailing list