This project has moved and is read-only. For the latest updates, please go here.

GetUserLoginFromEmail - prompting for credential for the logged in site.

Nov 1, 2012 at 1:03 AM

I am trying to get login ids of multiple users from array of email accounts but it is prompting me for the username and password for the same site that I'm logged in to. If I give myself full control it works fine but I want this functionality to work for end users with minimum permissions. Is there any way to make this work, am I doing something wrong here? Any help suggestions will be highly appreciated.

This is the portion on my code:

<script language=JavaScript src="/js/1.5.0/jquery.min.js" type=text/javascript></script>

<script language=JavaScript src="/js/jquery.SPServices-0.2.10a.js" type=text/javascript></script>



for(i=0; i<emailArray.length; ++i){


 operation: "GetUserLoginFromEmail",

 async: false,

emailXml:"<Users><User Email='"+emailArray[i+1]+"'/></Users>",

completefunc: function (xData, Status)



var loginId=($(this).attr("Login"));

var finalLoginId=loginId.replace("\\",""_"); });