legacy-knowledge-base
公開されました Jun. 30, 2025

Screen name should not be required when Autogenerate User Screen Names is enabled

written-by

Marcos da Silva Xavier

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

learn-legacy-article-disclaimer-text

Issue

  • When enabling Autogenerate User Screen Names, the Object Action still mandates a Screen Name field, which is an inconsistency.
  • The aforementioned behavior can be reproduced by doing the following steps:

      1. Go to Instance Settings → Users → Fields
      2. Enable Autogenerate User Screen Names
      3. Create a new Liferay Object
      4. Go to Actions → Add Object Action → Action Builder
      5. For Trigger → When, select Standalone
      6. For Action → Then, select Add a new Object Entry on User

Environment

  • Liferay DXP 7.4+
  • Liferay DXP Quarterly Releases

Resolution

  • Unfortunately, this is an intended behavior, however as a workaround, in order to bypass the required field, you can fill the “wrong mandatory” field with a “–fixed string–” value.

  • When the action is performed, the system, because the instance settings is turned on, ignores it and generates a correct screen name.

 

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base