
SomilB.83649 (Customer) asked a question.
We have an on prem AD and Exchange, Workday (as a master) -> Okta -> AD for all mail enabled users. We would like to allow Workday to "own" the email address (as Workday handles name changes) and update AD accordingly. Has anyone had success in manipulating the proxyaddress field to create the new SMTP entry and append the old email address to the existing secondary email addresses already in the field?

We have a process that appends a primary SMTP from Workday to AD, but this is during user creation. I do not know how it could be modified to add the old primary address as an alias smtp. Here's an example, if this helps.
String.stringContains(user.email, "company.com") ? Arrays.add(user.ProxyAddresses, String.append("SMTP:", user.email)) : hasDirectoryUser() ? findDirectoryUser().proxyAddresses : null