Legacy Knowledge Base
Published Jul. 2, 2025

Screen name validation error

Written By

Rodrigo Mier

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Unable to choose a specific Screename. It could be cause by the following reasons:
    1. This specific Screen name is already chosen
    2. This Screen Name is not validated because the characters are not according to the screename characters politics. 
    3. Conflicts with an external authentication service policy like LDAP or Single-signOn

Environment

  • Liferay Portal 5.x
  • Liferay Portal 6.x
  • DXP 7.x

Resolution

  1. If the Screen name is already chosen, you need to choose another one because this field is unique
  2. You can modify the screename validator politics with the following properties:
    • To allow numeric characters on the Screen Name:
      • users.screen.name.allow.numeric=true
    • To allow special characters on the Scree Name:
      • users.screen.name.special.characters=-._
  3. If there is an issue with an external authentication service, check their configuration and policy.

Additional Information

  • You can even auto-generate the Screen Names with the following property:
    • users.screen.name.always.autogenerate=true
  • If still need to customice the validation politics Input a class name that implements com.liferay.portal.security.auth.ScreenNameValidator. More information about Screen name validator here.
Did this article resolve your issue ?

Legacy Knowledge Base