Reasons why userProfileLookup only works for some users?

  • 12 March 2019
  • 1 reply
  • 1 view

Badge +7

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?


1 reply

Badge +7

Problem solved!

 

It was due the user profile synchronizations not occuring on the dev server on which I was developing. After fixing that and starting an incremental crawl, the "missing" users eventually start to work as expected via the userProfileLookup() function.

Reply