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

Is it possible to retrieve the name of a user using the SPServices given the email address?

Suppose Jack Harry has a email jack_harry@goodworld.net inside the SharePoint 2007. Is it possible to provide SPService the email jack_harry@goodworld.net and SPServices will return Jack Harry?

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

Try this:

$().SPServices({
    operation: "GetUserLoginFromEmail",
    emailXml: "<Users><User Email='jack_harry@goodworld.net'/></Users>",
        completefunc: function (xData, Status) {
        $(xData.responseXML).find("User").each(function() {
                    $(this).attr("DisplayName");
                })
        }
});
share|improve this answer
    
+1 David, you are awesome! –  Larry Morries Nov 8 '11 at 9:00
    
Excellent Answer –  Hari Gillala Nov 8 '11 at 10:26
add comment

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.