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

Regex validation is not working on the User Creation Request form

Yurii
New Contributor II
New Contributor II

On the User Creation Request form I have a field for users.customproperty35 and I want to validate user input by regex. According documentation (https://docs.saviyntcloud.com/bundle/EIC-Admin-v2022x/page/Content/Chapter14-Password-Management/Und...), I created following regex to limit user input by small chars, digits, point and dash:

[a-z0-9-.]{1,20}

But, despite that, I'm still able to create user requests with out of the scope chars.
For example, I created the request with customproperty35 = test100#_l
In this case, chars "#" and "_" should not pass regex, but they do. 

Why my regex is not working?

2 REPLIES 2

armaanzahir
Valued Contributor
Valued Contributor

Hi @Yurii ,

 

Can you check using the following expression?

^[a-z0-9-.]{1,20}$

 

Regards,
Md Armaan Zahir

Yurii
New Contributor II
New Contributor II

Thank you @armaanzahir ! Now it's working.