I need to fetch some properties.
How can I access
User Profile with
Client Object Model?
Any code example will be helpful.
PowerShell would be another way that's fast as well using the following steps:
See these two posts for the PowerShell Code (both are similar) -
A listing of SharePoint PowerShell cmdlets at the Microsoft TechNet site - Use Windows PowerShell cmdlets to configure the User Profile service in SharePoint Server 2013.
[UPDATED: May 4th 2014]
Using PowerShell with REST has its benefits in flexibility and faster development -
This example uses the User Profiles object model to display the user profile properties that exist on the server. Replace servername with an actual value before running the code example. Also add references to the following in your Microsoft Visual Studio project:
Here are other references:
using Client Object Model
Solution Explorer, right-click on the "References" folder and then click on "Add Reference"
We have to add ddl: