0

I have a people picker field where I get user data using JavaScript.

picker.OnValueChangedClientScript = function (elementId, userInfo) {
  var email = userInfo[0].EntityData.Email;
  ...

For some reason, and for some people only (not me!), EntityData contain no values (empty string). How could that be? The selected user has an email adress and when I run the code everything works.

2
  • 1
    Had a similar issue, where no image data was available for a specific user. It worked after the user visited the SharePoint site.
    – Kiril
    Commented Aug 19, 2022 at 9:55
  • Which permissions are granted to user on site? Commented Aug 19, 2022 at 10:50

1 Answer 1

0

@Kiril was right in the comment above, it worked after the user visited the site.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.