[midPoint] Update Multivalue Attribute (proxyAddresses) in Outbound Definition

Yakov Revyakin yrevyakin at gmail.com
Thu Jan 29 15:29:35 CET 2026


Hi Patrik,
You actually have access to previous values:

<source>
    <path>emailAddress</path>
</source>
<source>
    <name>existingProxyAddresses</name>
    <path>$projection/attributes/proxyAddresses</path>
</source>


On Fri, 23 Jan 2026 at 15:41, Davy Priem via midPoint <
midpoint at lists.evolveum.com> wrote:

> 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
> User Email new: email.new at mycompany.com
>
> proxyAddresses before:
> -------------------------------------------------------------------
> - SMTP:email.old at mycompany.com
> - smtp: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
> - smtp:email.new at mycompany.on.microsoft.com
> - smtp:email.old at mycompany.com
> - smtp: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
> https://lists.evolveum.com/mailman/listinfo/midpoint
>
>
> _______________________________________________
> midPoint mailing list
> 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/20260129/4ceca5dc/attachment.htm>


More information about the midPoint mailing list