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

Validation failing for User email - Create User Form

Sbachu
New Contributor II
New Contributor II

we are using following validation for email verification in validation condition 

!email.matches(^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+.[a-zA-Z0-9.-])

 

but Saviynt is displaying Invalid email address error even when using valid email format. check the screen shot below

Email Error.PNG

15 REPLIES 15

Raghu
Valued Contributor III
Valued Contributor III

you can use below one only for reg validation and try it

^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+.[a-zA-Z0-9.-]


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Sbachu
New Contributor II
New Contributor II

Using this in Regex just shows generic error but not the custom message we defined.

Raghu
Valued Contributor III
Valued Contributor III

We can't show and add custom message @Sbachu , raise idea , it will show generic only as per document.

https://forums.saviynt.com/t5/identity-governance/custom-error-text-for-regex-validation-failure-on-...

 


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

rushikeshvartak
All-Star
All-Star

Currently Regex Message is generic. What we followed approch is used note section to display allowed character and sample format

rushikeshvartak_0-1713115462372.png

 

https://forums.saviynt.com/t5/identity-governance/custom-error-text-for-regex-validation-failure-on-...

 

Upvote idea https://ideas.saviynt.com/ideas/EIC-I-3423


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

can you let me know where exactly you put that Account Name Format information? is it in attribute label? or did you select Long text ?? could you please clearly elaborate?

Attribute label and attribute type checkbox 


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

I will test this. also, as i mentioned in earlier response the regex is not working even for valid email format. its throwing same error

Refer https://forums.saviynt.com/t5/identity-governance/user-registration-form-validation/m-p/82802#M53313


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

Did you got chance to test ?


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

i am using below in validation and still getting error when using valid email 

!email.matches(^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+.[a-zA-Z0-9.-]) 

Sbachu_0-1713397635808.png

 

Great this is working,

Please click the 'Accept As Solution' button on the reply (or replies) that best answered your original question.


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

Its not working. i Said its throwing error even for a valid email address.

Yes its known limitation Refer https://forums.saviynt.com/t5/identity-governance/custom-error-text-for-regex-validation-failure-on-...


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

haardik_verma
Regular Contributor
Regular Contributor

Hi @Sbachu ,

I had a similar requirement, but unfortunately, I have not been able to find an ideal solution for this till now.

From my experience, if we prioritize functionality by using "Regex" as ^[a-zA-Z0-9+_.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+$ we have to compromise on the UX, since you will not be able to display custom text.

https://forums.saviynt.com/t5/identity-governance/custom-error-text-for-regex-validation-failure-on-...


Thanks & Regards,
Haardik Verma

Appreciate your response @haardik_verma