[midPoint] Correlation v 4.8

Markus Calmius markus.calmius at proton.ch
Tue Jan 23 09:49:44 CET 2024


Hi Michal,

I had the same issue, but I think I figured it out. I have now updated all my resources to use the smart correlation. 

This is what part of my "input" resource looks like:

        <objectType>
            <kind>account</kind>
            <intent>default</intent>
            <default>true</default>
            <displayName>Default Account</displayName>
            <delineation>
                <objectClass>ri:AccountObjectClass</objectClass>
            </delineation>
            <focus>
                <type>UserType</type>
            </focus>

            <attribute>
                <ref>ri:employeeId</ref>
                <correlator/>
                <inbound>
                    <strength>strong</strength>
                    <target>
                        <path>$focus/personalNumber</path>
                    </target>
                </inbound>
            </attribute>
            .....
            
            <synchronization>
                <reaction>
                    <name>Link User</name>
                    <situation>unlinked</situation>
                    <actions>
                        <link>
                            <synchronize>true</synchronize>
                            <reconcile>true</reconcile>
                        </link>
                    </actions>
                </reaction>
            .....
            </synchronization>
        </objectType>

You just need to add the tag <correlator/> to eh attribute you want to use as the key.
They you put the synchronization part in the object-type.

To be fair, I still have some issues that I do not understand.
The correlation and synchronisation seems to work, but the LiveSync doesn't update anything any longer...
Still trying to figure that out.
 
Hope this helps!

Kind regards,
Markus

On Monday, 22 January 2024 at 15:17, midpoint-request at lists.evolveum.com <midpoint-request at lists.evolveum.com> wrote:

> Send midPoint mailing list submissions to
> midpoint at lists.evolveum.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.evolveum.com/mailman/listinfo/midpoint
> or, via email, send a message with subject or body 'help' to
> midpoint-request at lists.evolveum.com
> 
> You can reach the person managing the list at
> midpoint-owner at lists.evolveum.com
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of midPoint digest..."
> 
> 
> Today's Topics:
> 
> 1. Correlation v 4.8 (Michal Sakac)
> 2. Re: Correlation v 4.8 (Fabian Noll-Dukiewicz)
> 3. Re: Correlation v 4.8 (Michal Sakac)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Mon, 22 Jan 2024 14:42:39 +0100
> From: Michal Sakac seky at civ.zcu.cz
> 
> To: midpoint at lists.evolveum.com
> Subject: [midPoint] Correlation v 4.8
> Message-ID: 49322740-FE3F-4DC8-9B2F-93C4A429B2BB at civ.zcu.cz
> 
> Content-Type: text/plain; charset="utf-8"
> 
> Hello,
> correlations do not work for me in midpoint version 4.8.
> When I try to create a correlation rule in the new GUI I don't understand how to enter it.
> If I try the same procedure through Midpoint studio, I get an error. Could someone help me?
> I need to compare name and attribute on resource.
> 
> 
> <correlation>
> 
> <q:equal>
> 
> <q:path>name</q:path>
> 
> <expression>
> 
> <path>$account/attributes/ri:ID</path>
> 
> </expression>
> 
> </q:equal>
> 
> </correlation>
> 
> 
> 
> I got this error :
> 
> Item {http://prism.evolveum.com/xml/ns/public/query-3}equal has no definition (in value CTD ({.../common/common-3}CorrelationDefinitionType))while parsing ( {http://prism.evolveum.com/xml/ns/public/query-3}equal => ( {...common/common-3}expression => ( {...common/common-3}path => parser ValueParser(DOM-less, $account/attributes/ri:kodpra, namespace declarations) ) {http://prism.evolveum.com/xml/ns/public/query-3}path => parser ValueParser(DOM-less, name, namespace declarations) ) )
> 
> 
> 
> 
> Thx for help.
> 
> 
> Michal Sakac
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://lists.evolveum.com/pipermail/midpoint/attachments/20240122/82e7d1a5/attachment-0001.htm
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Mon, 22 Jan 2024 13:57:16 +0000
> From: Fabian Noll-Dukiewicz fabian.noll-dukiewicz at veryfy.gmbh
> 
> To: midPoint General Discussion midpoint at lists.evolveum.com
> 
> Subject: Re: [midPoint] Correlation v 4.8
> Message-ID:
> BE1P281MB1939ECEEDF89B29FC273831AA3752 at BE1P281MB1939.DEUP281.PROD.OUTLOOK.COM
> 
> 
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi Michal,
> 
> the correlation for midpoint 4.8 is described here: https://docs.evolveum.com/midpoint/reference/support-4.8/correlation/
> 
> You can use the smart item-based correlation rule or the legacy filter-based correlation rule. If you use the legacy one, you only have to add the tag <filter> before <q:equal> and the end tag </filter> after </q:equal>.
> 
> 
> Kind regards,
> Fabian
> 
> --
> Fabian Noll-Dukiewicz
> Spezialist Identity & Access Management | Geschäftsführer
> Tel.: +49 152 244 63 211
> Email: fabian.noll-dukiewicz at veryfy.gmbh
> Web: https://veryfy.gmbh
> 
> 
> Von: midPoint midpoint-bounces at lists.evolveum.com im Auftrag von Michal Sakac via midPoint midpoint at lists.evolveum.com
> 
> Datum: Montag, 22. Januar 2024 um 14:43
> An: midpoint at lists.evolveum.com midpoint at lists.evolveum.com
> 
> Cc: Michal Sakac seky at civ.zcu.cz
> 
> Betreff: [midPoint] Correlation v 4.8
> 
> Hello,
> 
> correlations do not work for me in midpoint version 4.8.
> 
> When I try to create a correlation rule in the new GUI I don't understand how to enter it.
> 
> If I try the same procedure through Midpoint studio, I get an error. Could someone help me?
> 
> I need to compare name and attribute on resource.
> 
> 
> 
> 
> 
> <correlation>
> 
> <q:equal>
> 
> <q:path>name</q:path>
> 
> <expression>
> 
> <path>$account/attributes/ri:ID</path>
> 
> </expression>
> 
> </q:equal>
> 
> </correlation>
> 
> 
> 
> 
> 
> I got this error :
> 
> Item {http://prism.evolveum.com/xml/ns/public/query-3}equal has no definition (in value CTD ({.../common/common-3}CorrelationDefinitionType))while parsing ( {http://prism.evolveum.com/xml/ns/public/query-3}equal => ( {...common/common-3}expression => ( {...common/common-3}path => parser ValueParser(DOM-less, $account/attributes/ri:kodpra, namespace declarations) ) {http://prism.evolveum.com/xml/ns/public/query-3}path => parser ValueParser(DOM-less, name, namespace declarations) ) )
> 
> 
> 
> 
> Thx for help.
> 
> 
> Michal Sakac
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://lists.evolveum.com/pipermail/midpoint/attachments/20240122/189f17d3/attachment-0001.htm
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Mon, 22 Jan 2024 15:17:05 +0100
> From: Michal Sakac seky at civ.zcu.cz
> 
> To: Fabian Noll-Dukiewicz fabian.noll-dukiewicz at veryfy.gmbh
> 
> Cc: midpoint at lists.evolveum.com
> Subject: Re: [midPoint] Correlation v 4.8
> Message-ID: 7758BBE7-EF22-41D0-9CF4-5FF90C277A5D at civ.zcu.cz
> 
> Content-Type: text/plain; charset="utf-8"
> 
> Hi I try that but I got same error
> 
> 
> FATAL_ERROR Item {http://midpoint.evolveum.com/xml/ns/public/common/common-3}equal has no definition (in value CTD ({.../common/common-3}CorrelationDefinitionType))while parsing ( {...common/common-3}equal => ( {...common/common-3}expression => ( {...common/common-3}path => parser ValueParser(DOM-less, $account/attributes/ri:ID, namespace declarations) ) {...common/common-3}path => parser ValueParser(DOM-less, name, namespace declarations) ) )
> 
> 
> 
> <correlation>
> 
> <equal>
> 
> <path>name</path>
> 
> <expression>
> 
> <path>$account/attributes/ri:ID</path>
> 
> </expression>
> 
> </equal>
> 
> </correlation>
> 
> 
> 
> I don’t know what wrong with this configuration. GUI is horrible for this. I don’t know how to click correlation rule in GUI.
> 
> > 22. 1. 2024 v 14:57, Fabian Noll-Dukiewicz fabian.noll-dukiewicz at veryfy.gmbh:
> > 
> > Hi Michal,
> > 
> > the correlation for midpoint 4.8 is described here: https://docs.evolveum.com/midpoint/reference/support-4.8/correlation/
> > 
> > You can use the smart item-based correlation rule or the legacy filter-based correlation rule. If you use the legacy one, you only have to add the tag <filter> before <q:equal> and the end tag </filter> after </q:equal>.
> > 
> > Kind regards,
> > Fabian
> > 
> > --
> > Fabian Noll-Dukiewicz
> > Spezialist Identity & Access Management | Geschäftsführer
> > Tel.: +49 152 244 63 211
> > Email: fabian.noll-dukiewicz at veryfy.gmbh mailto:fabian.noll-dukiewicz at veryfy.gmbh
> > Web: https://veryfy.gmbh https://veryfy.gmbh/
> > 
> > Von: midPoint <midpoint-bounces at lists.evolveum.com mailto:midpoint-bounces at lists.evolveum.com> im Auftrag von Michal Sakac via midPoint <midpoint at lists.evolveum.com mailto:midpoint at lists.evolveum.com>
> > Datum: Montag, 22. Januar 2024 um 14:43
> > An: midpoint at lists.evolveum.com mailto:midpoint at lists.evolveum.com <midpoint at lists.evolveum.com mailto:midpoint at lists.evolveum.com>
> > Cc: Michal Sakac <seky at civ.zcu.cz mailto:seky at civ.zcu.cz>
> > Betreff: [midPoint] Correlation v 4.8
> > 
> > Hello,
> > correlations do not work for me in midpoint version 4.8.
> > When I try to create a correlation rule in the new GUI I don't understand how to enter it.
> > If I try the same procedure through Midpoint studio, I get an error. Could someone help me?
> > I need to compare name and attribute on resource.
> > 
> > <correlation>
> > <q:equal>
> > <q:path>name</q:path>
> > <expression>
> > <path>$account/attributes/ri:ID</path>
> > </expression>
> > </q:equal>
> > </correlation>
> > 
> > I got this error :
> > 
> > Item {http://prism.evolveum.com/xml/ns/public/query-3}equal has no definition (in value CTD ({.../common/common-3}CorrelationDefinitionType))while parsing ( {http://prism.evolveum.com/xml/ns/public/query-3}equal => ( {...common/common-3}expression => ( {...common/common-3}path => parser ValueParser(DOM-less, $account/attributes/ri:kodpra, namespace declarations) ) {http://prism.evolveum.com/xml/ns/public/query-3}path => parser ValueParser(DOM-less, name, namespace declarations) ) )
> > 
> > Thx for help.
> > 
> > Michal Sakac
> 
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://lists.evolveum.com/pipermail/midpoint/attachments/20240122/8a9a3e87/attachment.htm
> 
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
> 
> 
> ------------------------------
> 
> End of midPoint Digest, Vol 141, Issue 25
> *****************************************


More information about the midPoint mailing list