How to add a new user with '/' in the user name

Ameya Kulkarni asked on September 26, 2017 17:36

I want to add new users with corp/user name. But it gives me an error saying '/' not allowed in user name. What setting can I use to enable this ?

Correct Answer

Rui Wang answered on September 26, 2017 18:31

You can add this key into web.config <add key="CMSUserValidationRegEx" value="([A-Za-z0-9-]+)" />

and change the RegEx to include \ or set it to a xx\yy

more detail here: https://docs.kentico.com/k10/references/reference-web-config-application-keys#Reference-Web.configapplicationkeys-Settingsforforbiddencharactersinuserandrolenames

2 votesVote for this answer Unmark Correct answer

Recent Answers


Ameya Kulkarni answered on September 27, 2017 15:52 (last edited on September 27, 2017 15:53)

Thanks for your answer. I found that you can also add this key which will do the same.

<add key="CMSEnsureSafeUserNames" value="false" />

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.