<div dir="ltr">Hi Patrik,<div>You actually have access to previous values:<br><div style="background-color:rgb(30,31,34);color:rgb(188,190,196)"><pre style="font-family:"JetBrains Mono",monospace;font-size:9.8pt"><span style="color:rgb(213,183,120)"><source><br></span><span style="color:rgb(213,183,120)"> <path></span>emailAddress<span style="color:rgb(213,183,120)"></path><br></span><span style="color:rgb(213,183,120)"></source><br></span><span style="color:rgb(213,183,120)"><source><br></span><span style="color:rgb(213,183,120)"> <name></span>existingProxyAddresses<span style="color:rgb(213,183,120)"></name><br></span><span style="color:rgb(213,183,120)"> <path></span>$projection/attributes/proxyAddresses<span style="color:rgb(213,183,120)"></path><br></span><span style="color:rgb(213,183,120)"></source></span></pre></div></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, 23 Jan 2026 at 15:41, Davy Priem via midPoint <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hi,
<div><br>
</div>
<div>We store all our mail address within the user object in midpoint and we have following outgoing mapping to AD. So $user/extension/emailAddresses contains all mailaddresses and $user/extension/VIVESEmail contains the default reply address. We ignore a x500.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="background-color:rgb(255,255,255);font-size:13px;line-height:20px;white-space:pre-wrap">
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">attribute</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">c:ref</span>
<span style="color:rgb(33,110,78)">xmlns:ri</span>=<span style="color:rgb(0,0,255)">"<a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" target="_blank">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>"></span>ri:proxyAddresses<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">c:ref</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">exclusiveStrong</span><span style="color:rgb(0,0,255)">></span>false<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">exclusiveStrong</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">outbound</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">strength</span><span style="color:rgb(0,0,255)">></span>strong<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">strength</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">source</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">c:path</span><span style="color:rgb(0,0,255)">></span>$user/extension/emailAddresses<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">c:path</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">source</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">source</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">c:path</span><span style="color:rgb(0,0,255)">></span>$user/extension/VIVESEmail<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">c:path</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">source</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">expression</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">script</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">includeNullInputs</span><span style="color:rgb(0,0,255)">></span>false<span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">includeNullInputs</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">code</span><span style="color:rgb(0,0,255)">></span></div>
<div>if (emailAddresses == VIVESEmail) {</div>
<div>return ["SMTP:"+emailAddresses,"SIP:"+emailAddresses];</div>
<div>} else {</div>
<div>return "smtp:"+emailAddresses;</div>
<div>}</div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">code</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">script</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">expression</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">target</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">set</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">condition</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">script</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><</span><span style="color:rgb(12,102,228)">code</span><span style="color:rgb(0,0,255)">></span></div>
<div>// ignore x500 adressen</div>
<div>if (input.toLowerCase().startsWith("x500")) {</div>
<div>return false;</div>
<div>} </div>
<div>return true;</div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">code</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">script</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">condition</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">set</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">target</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">outbound</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"></</span><span style="color:rgb(12,102,228)">attribute</span><span style="color:rgb(0,0,255)">></span></div>
<div><span style="color:rgb(0,0,255)"><br>
</span></div>
</div>
<div>
<div><br>
Davy Priem<br>
Coördinator IT architectuur, operations en security<br>
<br>
Hogeschool VIVES | Dienst digitale transformatie<br>
Doorniksesteenweg 145 | 8500 Kortrijk<br>
tel. + 32 56 27 05 61 <br>
e-mail <a href="mailto:davy.priem@vives.be" target="_blank">davy.priem@vives.be</a> <br>
<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div><br>
<blockquote type="cite">
<div>Op 23 jan 2026, om 13:27 heeft Patrik Sidler via midPoint <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>> het volgende geschreven:</div>
<br>
<div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Verdana,Geneva,sans-serif;font-size:11pt">
Dear Community,<br>
<br>
I am working with midPoint 4.10 and trying to implement a User Name Change. </div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Verdana,Geneva,sans-serif;font-size:11pt">
During this Name Change, I also have to change the EmailAddress on the users Active Directory Account.<br>
<br>
For this I have to update the Multivalue Attribute proxyAddresses on the AD Account.</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Verdana,Geneva,sans-serif;font-size:11pt">
<br>
</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Verdana,Geneva,sans-serif;font-size:11pt">
User Email old: <a href="mailto:email.old@mycompany.com" target="_blank">email.old@mycompany.com</a></div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Verdana,Geneva,sans-serif;font-size:11pt">
User Email new: <a href="mailto:email.new@mycompany.com" target="_blank">email.new@mycompany.com</a></div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Verdana,Geneva,sans-serif;font-size:11pt">
<br>
</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Verdana,Geneva,sans-serif;font-size:11pt">
proxyAddresses before:</div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Verdana,Geneva,sans-serif;font-size:11pt">
------------------------------------------------------------------- </div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Verdana,Geneva,sans-serif;font-size:11pt">
- SMTP:<a href="mailto:email.old@mycompany.com" target="_blank">email.old@mycompany.com</a></div>
<div style="font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-family:Verdana,Geneva,sans-serif;font-size:11pt">
- smtp:<a href="mailto:email.old@mycompany.on.microsoft.com" target="_blank">email.old@mycompany.on.microsoft.com</a></div>
<div id="m_-3220347741311854451Signature" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
- X500:/o=MYCOMPANY/ou=Exchange Administrative Group (FYDIBSPDLT)/cn=Recipients/cn=F9BC052FEFE4E16175FC125715C</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
<br>
</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
proxyAddresses after:</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
-----------------------------------------------------------------</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
- SMTP:<a href="mailto:email.new@mycompany.com" target="_blank">email.new@mycompany.com</a><br>
- smtp:<a href="mailto:email.new@mycompany.on.microsoft.com" target="_blank">email.new@mycompany.on.microsoft.com</a></div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
- smtp:<a href="mailto:email.old@mycompany.com" target="_blank">email.old@mycompany.com</a><br>
- smtp:<a href="mailto:email.old@mycompany.on.microsoft.com" target="_blank">email.old@mycompany.on.microsoft.com</a></div>
<div id="m_-3220347741311854451Signature">
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
- X500:/o=MYCOMPANY/ou=Exchange Administrative Group (FYDIBSPDLT)/cn=Recipients/cn=F9BC052FEFE4E16175FC125715C</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
<br>
I have tried several ways to update this Attribute but I do net get the list with the old Values.</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
I am able to add as much as I want but I can not read the old values, store them in a list, aad/update/delete some of them and then store the new list on the Account.</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
<br>
</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
Has anyone ever updated proxyAddresses sucessfully and if yes, how did you do this?</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
<br>
</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
Thank you in advance for any help.<span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt"><br>
</span></div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
<br>
</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
Regards,</div>
<div style="font-family:Verdana,Geneva,sans-serif;font-size:11pt">
Patrik</div>
</div>
</div>
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">_______________________________________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline">midPoint
mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<a href="mailto:midPoint@lists.evolveum.com" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">midPoint@lists.evolveum.com</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a></div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div>