SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just want to know, is there any way to get a SharePoint user using javascript / jquery from default SharePoint 2010 user profile db?

My requirement is to form an array of all SharePoint site users (user name) and use this array in a java function (that run behind the page at client side ) as a data source for a SPServices function.

Please provide any fisible solution or any other approach for building the array for javascript.

share|improve this question
You say 'get a sharepoint user' and also 'an array of all sharepoint site users'. The answer depends based on which you want to do. – Marc D Anderson Feb 1 '11 at 19:19
up vote 7 down vote accepted

Check out, it has functions to interact with the user profile service, specifically the UserProfileService operations.

share|improve this answer
Eric's right: SPService rocks. (I wrote it.) – Marc D Anderson Feb 1 '11 at 19:18
we used this awesome library for our dynamic phonebook. It rocks! – Anders Rask Feb 1 '11 at 21:53
Ditto. It is an awesome plugin. – James Love Nov 30 '11 at 7:41

Your Answer


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.