Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/23/2024 09:25 AM - edited 09/23/2024 09:26 AM
Hi,
This is regarding service accounts via the manage service account tile.
We are trying to put a regex restriction on an endpoint level dynamic attribute that generates account name.
To generate the accountname, we are using another dynamic value which is of String Type.
The requirement is not to allow any special characters and NO spaces. Only a-zA-Z0-9 should be allowed.
I have used the below Regex in the dynamic attributes, but when i use special characters, it does not show and error and allows me to go to the next page.
Anything I am missing?
Regex Used : [^~!@#$%^&*_-+=?/][a-zA-Z0-9]{2,}
Solved! Go to Solution.
09/23/2024 09:52 AM
@AashishD try the below Regex
[a-zA-Z0-9^~!@#$%^&*_\-+=?/]+
or
[^a-zA-Z\u00C0-\u024F\u1E00-\u1EFF0-9^~!@#$%^&*_\-+=?/]
09/23/2024 10:12 AM
Hi Sam,
Neither of the options work. Does it work in your case?
It accepts eventhough the regex is mentioned.
09/23/2024 09:54 AM - edited 09/23/2024 09:54 AM
Did you checked browser console ?
^[a-zA-Z0-9]+$
09/23/2024 10:19 AM - edited 09/23/2024 10:19 AM
This seems to work but I have to fill all details in the service account form and when i go to the next page then it pops the error. Is there a way that when a requestor has finished filling the account name and moves to fill another attribute, the error pops up immediately?
09/23/2024 10:23 AM
user needs to click on next button thats default behavior and not configurable