05/23/2023 10:17 PM
Hi,
We have a form consisting of dynamic attributes while creating Service Accounts under 'Manage Service Account Tile'.
One attribute is Account Name, which is a free text field wherein the requestor types in the account name manually, without anything specific being generated. We haven't written any accountname rule for the endpoint as the requestor needs to add manually an accountname to the Service Account in the form
Our requirement is, whenever the requestor inputs an account name which is 15 characters long, it should pop the requestor an error message, or not allow the requestor to go to next page.
Is there any way we can write a validation condition that the accountname should be only 15 characters long, irrespective of whatever the accountname that has manually been input?
Any help is greatly appreciated. Thanks
05/24/2023 07:51 AM
This can be done using Regex .
[A-Za-z0-9~!@#$%^&*_-+=?/]{8,12}
Below link for reference.
Thanks
05/24/2023 09:23 PM - edited 05/25/2023 12:47 AM
Hello @AshishDas,
Please share the config details.
Thanks,
Thanks,
05/25/2023 12:17 AM
Hi Sudesh,
We have an option for 'Account Name validator Regex' under endpoint
However, this is too not working
05/25/2023 12:48 AM - edited 05/25/2023 12:51 AM
Hello @AshishDas,
Can you please try the below REGEX
^[a-zA-Z0-9@]{4,15}$
And please trace the logs once you execute the above regex.
For Ref:-
https://docs.saviyntcloud.com/bundle/EIC-Admin-v23x/page/Content/Chapter02-Identity-Repository/Viewi...
Thanks,