I checked the documentation for the User object and didn't find any explanation on how the LastLoginDate is managed. The description was not helpful:


The date and time when the user last successfully logged in. This value is updated if 60 seconds have elapsed since the user’s last login.

So my question is can I rely on the LastLoginDate field to determine when the user logs in to Community for the first time. My goal is to redirect users who log in for the first time to their profiles pages. If the value in LastLoginDate is blank it means that the user has never logged in to Community and they should be redirected to the profile page.

2 Answers 2


Yes, LastLoginDate works the same for community users as it does for standard users.


You can also use login history for all successful and failed login attempts for organizations and enabled portals.

If entry is not there, it means user has never tried for login.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .