<div dir="ltr"><div><div><div><div><div>Hi everyone! The issue I have is the following.<br><br></div>I have accounts in a resource that I want to link to existing users in MidPoint based on a condition: if the user in MidPoint has a certain "employeeType" value, I want the account in the resource to get linked to that user. Otherwise, the user shouldn't be linked.<br></div>I understand that I can add the following code to the synchronization of the resource:<br><br><i>   <synchronization><br>      <objectSynchronization><br>         <enabled>true</enabled><br>         <correlation><br>            <condition><br>              <script><br>                  <code><br>                    <b>basic.getAttributeValue(account, 'name') == "xxxxxxx"</b><br>                  </code><br>                </script><br>            </condition><br><br>            <q:equal><br>               <q:path>c:name</q:path><br>               <expression><br>                  <c:path>declare namespace icfs='<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3</a>'; $account/attributes/icfs:name</c:path><br>               </expression><br>            </q:equal><br>         </correlation></i><br><br></div>But that "name" attribute, refeers to the name of the account in the resource, not the one in MidPoint. Is there anyway I can refeer to the MidPoint account and get the "employeeType" values to compare them to a certain value, instead of using the resource account attributes for the condition?<br><br></div>Thanks a lot!<br><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Mariano<br></blockquote></div>