I need to display all users profiles properties, not one but all as a list. Can anyone point me in the right direction with some code? Your help will be much appreciated.

  • What info do you need? It could be done with Search API Commented May 14, 2014 at 9:52
  • I need to display all the properties. Can you provide me some code?
    – Imir Hoxha
    Commented May 14, 2014 at 9:53

1 Answer 1


Well this is actually a very easy task using the SharePoint Client APIs.

First you get the SP Context if you're using SSOM (it's called Client Context when you are using CSOM).

You get the web from the CSOM, and then go through one of the three available SPUserCollection properties on the SPWeb object.

Find an example with screen shots I wrote here: http://mazdev.blogspot.ae/2014/05/webpart-example-1-users-list-web-part.html

If you want a more powerful users profile, it's just a matter of exploring, well, the UserProfiles API. Just reference the Microsoft.SharePoint.Client.UserProfiles.DLL and go from there.

The default location on the SharePoint server is here: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.UserProfiles.dll

If you are using JSOM, it is similar.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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