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

AccountName Character limit to 15 for Service Accounts

AshishDas
Regular Contributor II
Regular Contributor II

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

AshishDas_0-1684905353601.png

 

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

4 REPLIES 4

dgandhi
All-Star
All-Star

This can be done using Regex .

[A-Za-z0-9~!@#$%^&*_-+=?/]{8,12}

Below link for reference.

https://docs.saviyntcloud.com/bundle/SSM-Admin-v55x/page/Content/Chapter13-Password-Management/Under...

Thanks

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @AshishDas,

Please share the config details.

Thanks,
Thanks,

If you find the above response useful, Kindly Mark it as "Accept As Solution".

AshishDas
Regular Contributor II
Regular Contributor II

Hi Sudesh,

We have an option for 'Account Name validator Regex' under endpoint

AshishDas_0-1684999022889.png

However, this is too not working

sudeshjaiswal
Saviynt Employee
Saviynt Employee

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,

If you find the above response useful, Kindly Mark it as "Accept As Solution".