Legacy Knowledge Base
Published Jul. 2, 2025

Users Fail to Import When First Name is Missing in LDAP

Written By

Michael Wine

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.
 This article discusses an apparent issue when Liferay Portal will throw a ContactFirstNameException error in the console. This error message appears when the first name is left out if importing a user from an LDAP server.

Resolution

This behavior is intended for Liferay Portal. Liferay Portal requires the attribute of First Name for a new user to be created. This can be observed when creating a new user in the Control Panel. If the first name is left out, the user will not be created and the user will be reminded that the first Name is required. When importing a user from LDAP, this behavior is consistent in that if the user does not not have a first name in the LDAP configuration, Liferay Portal will not import or add the user and the exception will be thrown.

Currently in the portal.properties file, there is the option to ignore the last name attribute.

#
# Set this to true if you want the last name to be required when creating
# users.
#
users.last.name.required=false

Additional Information

There is a a request for our engineers to look into adding a property that allows for ignoring a missing first name attribute on LPS-45941.

Did this article resolve your issue ?

Legacy Knowledge Base