[midPoint] LDAP Correlation

Slavek Licehammer slavek.licehammer at evolveum.com
Sun Oct 11 21:58:53 CEST 2020


Hello Andrea.

You can use <q:or> to combine different conditions. See  https://wiki.evolveum.com/display/midPoint/Query+API for more info. 

In your case it will be something like this: 
<q:or>
  <q:equal>
    <q:path >c:name</q:path>
    <expression xmlns="">
        <variable xmlns="">
            <name>en</name>
            <path>$account/attributes/employeeNumber</path>
        </variable>
        <script xmlns="">
            <code>
                'EMP_' + en
            </code>
        </script>
    </expression>
  </q:equal>

  <q:equal>
	<!-- condition for: 'STU_' + en  will be placed here-->
  </q:equal>
</q:or>


Best regards, 

  Slavek


On 06/10/2020 12:13, Andrea Picconi via midPoint wrote:
> Hi all,
> 
> i need help with correlation. I have one of this type for an LDAP:
> 
> <q:equal xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3" xmlns="">
>     <q:path >c:name</q:path>
>     <expression xmlns="">
>         <variable xmlns="">
>             <name>en</name>
>             <path>$account/attributes/employeeNumber</path>
>         </variable>
>         <script xmlns="">
>             <code>
>                 'EMP_' + en
>             </code>
>         </script>
>     </expression>
> </q:equal>
> 
> and it works great for correlating only one type of the "name" attribute ('EMP_' + en). But what if I wanted to add another one? For example, 'STU_' + en?
> How can I add it? Any help?
> 
> Thank you,
> 
> Andrea Picconi
> IAM (Identity Access Management)
> 
> [Innovery]
> Skype: precons
> T:  +39 06 51963439 (int. 196)
> 
> Strada Quattro Palazzina A6 c/o Centro Direzionale Milanofiori, 20057 Assago (MI).
> www.innovery.net<http://www.innovery.net/> |  T: +39 06 519 63 439
> 
> 
> 
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
> 



More information about the midPoint mailing list