I have a requirement to create operator ID with -(Hypen), I modified OOTB Edit validate rule "pyValidateInvalidChars" and removed this special charcter. Now Iam able to create operator ID with hypen(-), Is this the best approach or any alaternatives is there for this implemenatation?
Following this approach may solve your issue of creating operator id with hyphen.But this may result in many other issues.DAsh is not allowed in pega as the backend java code considers it as minus sign
Also In future if you want to implement SSO,you will face issue with this.these special characters are not allowed by many sites.
the alternate approach,I can suggest is to write an authentication activity that translates this dash sign to underscore and then store in pega which would not result in any issue.