[midPoint] Update Multivalue Attribute (proxyAddresses) in Outbound Definition
Davy Priem
davy.priem at vives.be
Fri Jan 23 14:40:43 CET 2026
Hi,
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.
<attribute>
<c:ref xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">ri:proxyAddresses</c:ref>
<exclusiveStrong>false</exclusiveStrong>
<outbound>
<strength>strong</strength>
<source>
<c:path>$user/extension/emailAddresses</c:path>
</source>
<source>
<c:path>$user/extension/VIVESEmail</c:path>
</source>
<expression>
<script>
<includeNullInputs>false</includeNullInputs>
<code>
if (emailAddresses == VIVESEmail) {
return ["SMTP:"+emailAddresses,"SIP:"+emailAddresses];
} else {
return "smtp:"+emailAddresses;
}
</code>
</script>
</expression>
<target>
<set>
<condition>
<script>
<code>
// ignore x500 adressen
if (input.toLowerCase().startsWith("x500")) {
return false;
}
return true;
</code>
</script>
</condition>
</set>
</target>
</outbound>
</attribute>
Davy Priem
Coördinator IT architectuur, operations en security
Hogeschool VIVES | Dienst digitale transformatie
Doorniksesteenweg 145 | 8500 Kortrijk
tel. + 32 56 27 05 61
e-mail davy.priem at vives.be
Op 23 jan 2026, om 13:27 heeft Patrik Sidler via midPoint <midpoint at lists.evolveum.com> het volgende geschreven:
Dear Community,
I am working with midPoint 4.10 and trying to implement a User Name Change.
During this Name Change, I also have to change the EmailAddress on the users Active Directory Account.
For this I have to update the Multivalue Attribute proxyAddresses on the AD Account.
User Email old: email.old at mycompany.com<mailto:email.old at mycompany.com>
User Email new: email.new at mycompany.com<mailto:email.new at mycompany.com>
proxyAddresses before:
-------------------------------------------------------------------
- SMTP:email.old at mycompany.com<mailto:email.old at mycompany.com>
- smtp:email.old at mycompany.on.microsoft.com<mailto:email.old at mycompany.on.microsoft.com>
- X500:/o=MYCOMPANY/ou=Exchange Administrative Group (FYDIBSPDLT)/cn=Recipients/cn=F9BC052FEFE4E16175FC125715C
proxyAddresses after:
-----------------------------------------------------------------
- SMTP:email.new at mycompany.com<mailto:email.new at mycompany.com>
- smtp:email.new at mycompany.on.microsoft.com<mailto:email.new at mycompany.on.microsoft.com>
- smtp:email.old at mycompany.com<mailto:email.old at mycompany.com>
- smtp:email.old at mycompany.on.microsoft.com<mailto:email.old at mycompany.on.microsoft.com>
- X500:/o=MYCOMPANY/ou=Exchange Administrative Group (FYDIBSPDLT)/cn=Recipients/cn=F9BC052FEFE4E16175FC125715C
I have tried several ways to update this Attribute but I do net get the list with the old Values.
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.
Has anyone ever updated proxyAddresses sucessfully and if yes, how did you do this?
Thank you in advance for any help.
Regards,
Patrik
_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com<mailto:midPoint at lists.evolveum.com>
https://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20260123/71148f6e/attachment-0001.htm>
More information about the midPoint
mailing list