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

Katka Valalikova katkav at evolveum.com
Wed May 29 17:05:28 CEST 2019


Hi Vladislavs, 

you probably need to add condition to your object synchronization parts. More explanation here: https://wiki.evolveum.com/display/midPoint/Synchronization+Configuration#SynchronizationConfiguration-Conditions 

Best regards, 
Katarina Valalikova 
Java Developer, 
evolveum.com 



From: "Vladislavs Filipciks" <vladislavs.filipciks at csolutions.lv> 
To: "midpoint" <midpoint at lists.evolveum.com> 
Sent: Wednesday, May 29, 2019 4:36:53 PM 
Subject: Re: [midPoint] Two (or more) objectTemplate in resource sync 

I've tried exactly the same config but unfortunately it's not working for me:( 
I've noticed that when in Accounts tab in Resource and I search for external intent in Resource, listed users still have "default" intent. On other hand, the search for "default" and "external" intents give me different results - correct ones. I know that because I'm filtering account by different OU in AD. 
So, basically MidPoint correctly query the AD Resource according to different intents I've configured, but in the end all the account on resource are with "default" intent. 




From: "Jason Everling" <jeverling at bshp.edu> 
To: "midpoint" <midpoint at lists.evolveum.com> 
Sent: Monday, 20 May, 2019 17:38:03 
Subject: Re: [midPoint] Two (or more) objectTemplate in resource sync 

Snapped a few from our erp, see attached 

On Mon, May 20, 2019 at 1:24 AM Vladislavs Filipciks < [ mailto:vladislavs.filipciks at csolutions.lv | vladislavs.filipciks at csolutions.lv ] > wrote: 



Hi Jason, 

Can You share with me Your resrouce config, object synchronization part? 
Because I've tried almost all compinations of there to insert objectTemplateRef and non worked:) 
Thanks. 


From: "Jason Everling" < [ mailto:jeverling at bshp.edu | jeverling at bshp.edu ] > 
To: "midpoint" < [ mailto:midpoint at lists.evolveum.com | midpoint at lists.evolveum.com ] > 
Sent: Saturday, 18 May, 2019 22:08:57 
Subject: Re: [midPoint] Two (or more) objectTemplate in resource sync 

we do, add the object template to each reaction as needed and not there where you have it. Move it for all intents 
On May 18, 2019, at 13:43, Vladislavs Filipciks < [ mailto:vladislavs.filipciks at csolutions.lv | vladislavs.filipciks at csolutions.lv ] > wrote: 
BQ_BEGIN

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. 



midPoint mailing list 
[ mailto:midPoint at lists.evolveum.com | midPoint at lists.evolveum.com ] 
[ http://lists.evolveum.com/mailman/listinfo/midpoint | http://lists.evolveum.com/mailman/listinfo/midpoint ] 




_______________________________________________ 
midPoint mailing list 
[ mailto:midPoint at lists.evolveum.com | midPoint at lists.evolveum.com ] 
[ http://lists.evolveum.com/mailman/listinfo/midpoint | http://lists.evolveum.com/mailman/listinfo/midpoint ] 
_______________________________________________ 
midPoint mailing list 
[ mailto:midPoint at lists.evolveum.com | midPoint at lists.evolveum.com ] 
[ http://lists.evolveum.com/mailman/listinfo/midpoint | http://lists.evolveum.com/mailman/listinfo/midpoint ] 

BQ_END


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

_______________________________________________ 
midPoint mailing list 
midPoint at lists.evolveum.com 
http://lists.evolveum.com/mailman/listinfo/midpoint 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20190529/697ee81e/attachment.htm>


More information about the midPoint mailing list