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:
-
- Go to Instance Settings → Users → Fields
- Enable Autogenerate User Screen Names
- Create a new Liferay Object
- Go to Actions → Add Object Action → Action Builder
- For Trigger → When, select Standalone
- 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.