Configure contact id field to accept certain characters/number/special characters only
search cancel

Configure contact id field to accept certain characters/number/special characters only

book

Article ID: 281813

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager

Issue/Introduction

The is article details the steps how Service Desk admin can configure the contact id field of the contacts so that only certain characters/numbers/special characters only. This is helpful to prevent users to accidently enters some hidden or harmful string to this contact id field as for some configuration the contact id field can be used for PIN authentication.

Environment

Service Desk Manager(SDM) 17.3 and higher

Resolution

1. open SDM-install\bopcfg\www\web.cfg file and add a new line

SecureParameter.SET.CONTACT_NUM AlphaNumericHiphenUnderScoreParenthesesColonSpaceEqualCommaPercentDot

after this line

SecureParameter.QBE.EQ.REF_NUM AlphaNumericHiphenUnderScoreParenthesesColonSpaceEqualCommaPercentDot

save the change

2. edit SDM-install\bopcfg\www\web.cfg.tpl and change/save the same

3. restart Service Desk/webengines

4. test: login to web interface and edit an user details. in contact id field, if you enter anything OUTSIDE of the setting(for example #), you won't be able to save the change. instead, you will see "AHD04400:Argument error"

 

 

Additional Information

1. if you have multiple SDM servers, you would need to do this on EACH and EVERY SDM server

2. this is only one example, you could modify to meet your need. For example, add a setting

Windows_SecureValidator.AlphaNumericHiphenUnderScoreParenthesesColonSpaceEqualCommaPercentDot2 ^[A-Za-z0-9-_(): =,\\%.#]*$

and have

SecureParameter.SET.CONTACT_NUM AlphaNumericHiphenUnderScoreParenthesesColonSpaceEqualCommaPercentDot2

then # is allowed. See this for details

How to Create a White List Pattern