<div dir="ltr">Here is the config, I also attached the complete CSV config<div><br></div><div><div><span class="" style="white-space:pre">              </span><synchronization></div><div><span class="" style="white-space:pre">                    </span><objectSynchronization></div><div><span class="" style="white-space:pre">                              </span><enabled>true</enabled></div><div><span class="" style="white-space:pre">                                </span><correlation></div><div><span class="" style="white-space:pre">                                        </span><q:equal></div><div><span class="" style="white-space:pre">                                            </span><q:path>c:name</q:path></div><div><span class="" style="white-space:pre">                                                </span><expression></div><div><span class="" style="white-space:pre">                                                 </span><script></div><div><span class="" style="white-space:pre">                                                             </span><language><a href="http://www.w3.org/TR/xpath/">http://www.w3.org/TR/xpath/</a></language></div><div><span class="" style="white-space:pre">                                                               </span><code>$c:account/c:attributes/icfs:name</code></div><div><span class="" style="white-space:pre">                                                 </span></script></div><div><span class="" style="white-space:pre">                                            </span></expression></div><div><span class="" style="white-space:pre">                                        </span></q:equal></div><div><span class="" style="white-space:pre">                           </span></correlation></div><div><br></div><div><span class="" style="white-space:pre">                      </span><!-- Following section describes reactions to a situations --></div><div><span class="" style="white-space:pre">                               </span> </div><div><span class="" style="white-space:pre">                         </span><reaction></div><div><span class="" style="white-space:pre">                                   </span><situation>linked</situation></div><div><span class="" style="white-space:pre">                                  </span><action ref="<a href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#modifyUser">http://midpoint.evolveum.com/xml/ns/public/model/action-3#modifyUser</a>"/></div><div><span class="" style="white-space:pre">                              </span></reaction></div><div><span class="" style="white-space:pre">                          </span><reaction></div><div><span class="" style="white-space:pre">                                   </span><situation>deleted</situation></div><div><span class="" style="white-space:pre">                                 </span><action ref="<a href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#inactivateFocus">http://midpoint.evolveum.com/xml/ns/public/model/action-3#inactivateFocus</a>"/></div><div><span class="" style="white-space:pre">                            </span></reaction></div><div><span class="" style="white-space:pre">                          </span><reaction></div><div><span class="" style="white-space:pre">                                   </span><situation>unlinked</situation></div><div><span class="" style="white-space:pre">                                        </span><action ref="<a href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#linkAccount">http://midpoint.evolveum.com/xml/ns/public/model/action-3#linkAccount</a>"/></div><div><span class="" style="white-space:pre">                            </span></reaction></div><div><span class="" style="white-space:pre">                          </span><reaction></div><div><span class="" style="white-space:pre">                                   </span><situation>unmatched</situation></div><div><span class="" style="white-space:pre">                                       </span><objectTemplateRef oid="10000000-0000-0000-0000-000000000201"/></div><div><span class="" style="white-space:pre">                                    </span><action ref="<a href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#addUser">http://midpoint.evolveum.com/xml/ns/public/model/action-3#addUser</a>"/></div><div><span class="" style="white-space:pre">                                    </span><!--<action ref="<a href="http://midpoint.evolveum.com/xml/ns/public/model/action-3#linkAccount">http://midpoint.evolveum.com/xml/ns/public/model/action-3#linkAccount</a>"/>--></div><div><span class="" style="white-space:pre">                               </span></reaction></div><div><span class="" style="white-space:pre">                  </span></objectSynchronization></div><div><span class="" style="white-space:pre">             </span></synchronization></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 22, 2014 at 10:52 AM, Ivan Noris <span dir="ltr"><<a href="mailto:ivan.noris@evolveum.com" target="_blank">ivan.noris@evolveum.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jason,<br>
<span class=""><br>
On 10/22/2014 04:20 PM, Jason Everling wrote:<br>
> I got the CSV import to work correctly using a dump from our student<br>
> information system for inbound sync only.<br>
><br>
> I am having a difficult time deciding which reactions/actions to use<br>
> for when a user is removed from the CSV resource file.<br>
><br>
> The dump contains only active students/faculty/staff, if a user is not<br>
> in the CSV file but exists in Midpoint I only want that account to be<br>
> disabled, not deleted.<br>
><br>
> In the current config the user is unlinked and I can change the<br>
> deleted option to inactivateFocus which does disable the account but<br>
> if that student is added back to the CSV file then the sync status<br>
> errors out because the account already exists and for some reason<br>
> cannot match the owner back, it tries to create a new account.<br>
<br>
</span>From what I read I suppose that you have a problem with the correlation<br>
rule/expression. Can you please post it here along with the current<br>
setup for reactions?<br>
<span class=""><br>
><br>
> What is the best config for this to happen, e.g student leaves or<br>
> withdraws, account is disabled, student comes back, account should be<br>
> re-enabled.<br>
<br>
</span>Yes this looks reasonable. If the student gets back, midPoint should<br>
find his/her user record in midPoint and link it again and synchronize<br>
attributes. midPoint will execute addUser or modifyUser operation<br>
according to the result of the correlation expression. I.e. if the<br>
account matches existing user in midPoint, it can be linked and<br>
attributes synchronized to midPoint. If the account does not match, for<br>
midPoint it means it should create a new user. As username in midPoint<br>
must be unique, it will probably fail (unless you generate the username).<br>
<br>
Regards,<br>
I.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
  Ing. Ivan Noris<br>
  Senior Identity Management Engineer<br>
  <a href="http://evolveum.com" target="_blank">evolveum.com</a><br>
  ___________________________________________<br>
           "Idem per idem - semper idem Vix."<br>
<br>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</font></span></blockquote></div><br></div>

<br>
<font size="2"><br><br>CONFIDENTIALITY NOTICE:<br>This e-mail together with any attachments is proprietary and confidential; intended for only the recipient(s) named above and may contain information that is privileged. You should not retain, copy or use this e-mail or any attachments for any purpose, or disclose all or any part of the contents to any person. Any views or opinions expressed in this e-mail are those of the author and do not represent those of the Baptist School of Health Professions. If you have received this e-mail in error, or are not the named recipient(s), you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited by the sender and to do so might constitute a violation of the Electronic Communications Privacy Act, 18 U.S.C. section 2510-2521. Please immediately notify the sender and delete this e-mail and any attachments from your computer. </font><br>