User Profile Basic

private static void GetUserProfileProperties(ClientContext contex)
{
var web = contex.Web;
User loginUser = web.CurrentUser;

PeopleManager peoplemanager = new PeopleManager(contex);
PersonProperties personProperits = peoplemanager.GetMyProperties();
contex.Load(personProperits);
contex.ExecuteQuery();

Console.WriteLine(“Account namer” + personProperits.AccountName);
Console.WriteLine(“Email” + personProperits.Email);
Console.WriteLine(“Display Name” + personProperits.DisplayName);
}

Ref:

http://www.vrdmn.com/2015/01/set-user-profile-properties-using-jsom.html

Advertisements
User Profile Basic

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s