I have a small application that is making use of the SP-COM. I use the following code to get the current users email address:
ctx = SP.ClientContext.get_current(); web = ctx.get_site().get_rootWeb(); currentUser = web.get_currentUser(); currentUser.retrieve(); currentUser.get_email()
Strange enough, for a couple of users the email addresse is not retrieved, even though the user has an email address when I look at the users settings-page. Looking at the json, that is coming back from the server, the email-address is also blank.
Any hints what I might be missing here?