Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
    
thanks Rob. appreciated. –  Justin Jan 7 at 11:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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