Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Update ProxyAddresses upon email change

saivalluri
New Contributor
New Contributor

This is a common use case for updating proxyaddresses with latest email address as primary and leaving old value as secondary. 

Did any one implement this case using updateAccountJSON successfully? If yes, please share the json. I am looking to understand 

1. how to replace existing primary "SMTP" with "smtp"

2. Appending a new value to current list with new email as "SMTP"

Thanks,

Sai

7 REPLIES 7

Darshanjain
Saviynt Employee
Saviynt Employee

Hi @saivalluri 

 

Can you provide an example of your use case like the existing emails should be appended to the old smtp and only new email to be updated in SMTP is that what you are looking?

 

Thanks

Darshan

Hi @Darshanjain ,

Yes requirement is to update new email to "SMTP" and old ones to "smtp".

Thanks,
Sonali

RakeshMG
Saviynt Employee
Saviynt Employee

For create try using : "proxyaddresses":["${('SMTP:'+mailNickname+'@'+emailDomain).replace(',', '\",\"')}"]


and to update old one : "proxyAddresses": ["smtp:${user.email.substring(0, user.email.lastIndexOf('@'))}@domain.com"]


​Regards

Rakesh M Goudar

Hi Rakesh,

Thanks for reply. 

While creating AD account, we are using below syntax which is working fine -

"proxyaddresses":["SMTP:${user.email}"]

 

While updating AD account with new as well as old email, we are using below syntax which is kind of updating duplicate values for second time email change -

"proxyaddresses":["SMTP:${user.email}","${task?.accountKey.customproperty51.replace('SMTP','smtp')}"]

In CP51, we are storing old emails through recon. This is working fine when we have email change for first time however its taking duplicate entries when we have email change for second time. 

Need your help in getting exact syntax to be used for such use case.

Thanks,

Sonali

Hi @sdhulap 

Can you give some more details on what value it is being stored at customproperty51 once an email is changed,  As per the above one even for second email it should store it correctly? or may be its not that clear.

Can you please explain with detail and give examples of values what you want to store so that there is more clarity on the values and process.

 

Thanks

Darshan

wyung
New Contributor
New Contributor

Hi @saivalluri ,

We also encounter similar issue with the proxy address, want to see if you have find out any solution on this?

KenKoch
New Contributor II
New Contributor II