<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
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-family: var(--ds-font-family-code, ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace), Menlo, Monaco, "Courier New", monospace; font-size: 13px; line-height: 20px; white-space: pre;">
<div><span style="caret-color: rgb(0, 0, 255); color: rgb(0, 0, 255); font-family: var(--ds-font-family-code, ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace), Menlo, Monaco, "Courier New", monospace;"><</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);">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"></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     davy.priem@vives.be <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 <midpoint@lists.evolveum.com> het volgende geschreven:</div>
<br class="Apple-interchange-newline">
<div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 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 class="elementToProof" 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; -webkit-text-stroke-width: 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 class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
<br>
</div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
User Email old:    <a href="mailto:email.old@mycompany.com">email.old@mycompany.com</a></div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
User Email new:   <a href="mailto:email.new@mycompany.com">email.new@mycompany.com</a></div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
<br>
</div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
proxyAddresses before:</div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
-------------------------------------------------------------------   </div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
- SMTP:<a href="mailto:email.old@mycompany.com">email.old@mycompany.com</a></div>
<div class="elementToProof" 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; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
- smtp:<a href="mailto:email.old@mycompany.on.microsoft.com">email.old@mycompany.on.microsoft.com</a></div>
<div class="elementToProof" id="Signature" style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
- X500:/o=MYCOMPANY/ou=Exchange Administrative Group (FYDIBSPDLT)/cn=Recipients/cn=F9BC052FEFE4E16175FC125715C</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
proxyAddresses after:</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
-----------------------------------------------------------------</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
- SMTP:<a href="mailto:email.new@mycompany.com">email.new@mycompany.com</a><br>
- smtp:<a href="mailto:email.new@mycompany.on.microsoft.com">email.new@mycompany.on.microsoft.com</a></div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
- smtp:<a href="mailto:email.old@mycompany.com">email.old@mycompany.com</a><br>
- smtp:<a href="mailto:email.old@mycompany.on.microsoft.com">email.old@mycompany.on.microsoft.com</a></div>
<div class="elementToProof" id="Signature">
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
- X500:/o=MYCOMPANY/ou=Exchange Administrative Group (FYDIBSPDLT)/cn=Recipients/cn=F9BC052FEFE4E16175FC125715C</div>
<div class="elementToProof" 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 class="elementToProof" 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 class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
<br>
</div>
<div class="elementToProof" 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 class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
<br>
</div>
<div class="elementToProof" 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 class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
<br>
</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
Regards,</div>
<div class="elementToProof" style="font-family: Verdana, Geneva, sans-serif; font-size: 11pt;">
Patrik</div>
</div>
</div>
<span style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none;">
<span style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">midPoint
 mailing list</span><br style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">midPoint@lists.evolveum.com</a><br style="caret-color: rgb(0, 0, 0); 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; -webkit-text-stroke-width: 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; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">https://lists.evolveum.com/mailman/listinfo/midpoint</a></div>
</blockquote>
</div>
<br>
</div>
</body>
</html>