Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Getting user id from server

$
0
0

I am getting user's id to add/update them in a list.

If I try to get the users who are already added(added in SharePoint group) in the sharepoint site, i am able to get the id by below code.

var ProdOwnercount = (ProductOwnerArray.length-1);
var ProductOwner = new Array();

for(j=1;j<=ProdOwnercount;j++)
{
var ProdOwnerdata = ProductOwnerArray[j];
var lines = ProdOwnerdata.split("<Value xsi:type=\"xsd:string\">");
var len = lines.length;
var id1 = lines[1];
var id = id1.split("<");
ProductOwner[j]=id[0];
}

If the users are not added or accessed the sharepoint site, how to get their id from user profile?

i want to achieve this using javascript/jquery.

Thanks,

Sriram


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>