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();

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


User Profile Basic

Leave a Reply

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

You are commenting using your 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