<div dir="ltr">Hi everyone! We have the following situation:<div><br></div><div>We have users that can be updated from two different resources (both database resources). First, we import the users from resource one and then we import the users that exist in resource two.</div><div><br></div><div>The thing is that when we perform the second import, we don't want all the users to get imported into MidPoint. We have a rule based on the value of the employeeType. Here's the configuration of resource 2:</div><div><br></div><div><i> <correlation><br></i></div><div><div><i>            <q:and></i></div><div><i>             <q:equal></i></div><div><i>               <q:path>c:name</q:path></i></div><div><i>               <expression></i></div><div><i>                  <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></i></div><div><i>               </expression></i></div><div><i>            </q:equal>   </i></div><div><i>            <q:equal></i></div><div><i>                    <q:path>c:employeeType</q:path></i></div><div><i>                    <q:value>EMPLOYEE</q:value></i></div><div><i>            </q:equal></i></div><div><i>          </q:and></i></div></div><div><i> </correlation></i><br></div><div><br></div><div>This configuration works for almost every situation. When there's a user in the database that matches one in midpoint (UNLINKED) , they are linked when we import them; when they don't match because they don't exist in midpoint (UNMATCHED), they are created.<div><br></div><div>The problem that we have, is when a user doesn't match any other, not because it doesn't exist in MidPoint, but because it doesn't have the specific value of the employeeType. So midpoint tries to create it, and it fails because there's an existing user with the same 'name'.</div><div><br></div><div>What we would want, is that when a user exists but doesn't have the employeeType value, MidPoint doesn't try to create it (maybe ignore it?). Any help with that? Thank you very much!</div><div><br></div><div>Ana</div><div><br></div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"></div></div></div></div></div></div></div></div></div></div>
</div></div>