On a form, I'm trying to display a user's "PreferredName" and "WorkEmail" using the userProfileLookup() function, and for some users it returns nothing (blank) but for others it works.
If I create a custom list with a Person column that is set to display the name or work email, these properties are shown correctly for those users that result in a blank via the userProfileLookup() on the form. This suggests to me that the AD information is correct, so can anyone suggest why the function might only work for some users and not others?