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

UPN is not getting created in AD

Yaswanth
New Contributor III
New Contributor III

Hello All,

Configured UPN as below in create Account JSON but still UPN is not getting created.

"userPrincipalName": "${if(user.email!=null) {user.email} else {user.username + '@domain.com.au'}}",

Can you help?

If Email is present UPN is creating but if email is null UPN is not getting created

[This message has been edited by moderator to merge reply comment]

4 REPLIES 4

adarshk
Saviynt Employee
Saviynt Employee

Try checking the condition against NULL and empty string ''

Yaswanth
New Contributor III
New Contributor III

Can you suggest the query here?

 

Hi @Yaswanth ,

Can you try below expression and check once:

"userPrincipalName" : "${if(user.email!=null && user.email!='') {user.email} else {user.username + '@domain.com.au'}}",


Pandharinath Mahalle(Paddy)
If this reply answered your question, please Accept As Solution to help other who may have a same problem. Give Kudos 🙂

rushikeshvartak
All-Star
All-Star

"userPrincipalName": "${user?.email != null ? user?.email : user?.username + '@domain.com.au'}"


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.