0

There are plenty of examples of getting the current user via javascript object model in SharePoint 2010, but I am looking for help with getting any users email/title when I have the loginName.

There is a user collection but I think you use the site groups to get to it? Any help is greatly appreciated!

1

You can call the GetUserProfileByName operation in the UserProfileService SOAP web service. The easiest way to do this in JavaScript is to use the SPServices jQuery plugin. The information provided in the documentation linked below should be enough to get you started.

UserProfileService.GetUserProfileByName Method

$().SPServices GetUserProfileByName Documentation

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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