<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Aivo,</p>
<p><br>
</p>
<p>just to understand, why can the name be changed in midpoint first
and in authoritative source later?</p>
<p>Ivan<br>
</p>
<br>
<div class="moz-cite-prefix">On 11/23/2016 04:31 PM, Aivo Kuhlberg
wrote:<br>
</div>
<blockquote cite="mid:1479915057988.96774@rmit.ee" type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
<p>Hi,<br>
</p>
I have midPoint connected to HR system (inbound only). Some of the
HR user's info, eg firstname and lastname, is synced directly to
midPoint when it changes in HR with strong inbound strength. But
the problem is here that user's name may be changed first in
midPoint and later in HR. When that happens then user name may
change back to old value after HR sync and later change back to
new value when the user name is changed in HR system. I want to
avoid that situation. Once the user name is changed it should not
switch back to old value because there are other attributes which
depend on that.<br>
My current idea how to avoid that situation is to store the
midPoint user's old name values in user's extension attributes
when user's name changes, eg "extension/oldgivenname" and
"extension/oldsn". In this case I could control for example the HR
firstname attribute inbound mapping with simple condition (for
simplicity I assume here that oldgivenname is single-valued
attribute):<br>
<condition><br>
<script><code>oldgivenname==null || firstname !=
oldgivenname</code></script><br>
</condition><br>
<br>
Question for me here is how to store the midPoint user's givenName
or sn attribute value in respective extension/oldgivenname or
extension/oldsn attribute before it is changed. Does anybody have
any ideas how to implement that functionality or any better ideas
how to avoid user name changing issue described above?<br>
Thanks,<br>
Aivo Kuhlberg<br>
<br>
<hr>
<font color="Gray" face="Arial" size="2">Käesolev e-kiri võib
sisaldada asutusesiseseks kasutamiseks tunnistatud teavet.<br>
This e-mail may contain information which is classified for
official use.</font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ivan Noris
Senior Identity Engineer
evolveum.com
</pre>
</body>
</html>