5

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.

  • 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
7

Check out http://SPServices.codeplex.com, it has functions to interact with the user profile service, specifically the UserProfileService operations.

  • 1
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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