Hello All ,
Is it possible to update a SharePoint user properties (like email, title, etc) using CSOM API? In the User class (Microsoft.SharePoint.Client.User) i saw properties like Email, Title are possible to get and set. I tried updating these properties through code like below, but it is not getting updated in SharePoint. Is there any alternative way?
String updateUser= "john alex";
User user1 = web.EnsureUser(updateUser);
user1.Email = "adc01@example.com";
clientContext.Load(user1);
clientContext.ExecuteQuery();
Regards
Shahabas
Is it possible to update a SharePoint user properties (like email, title, etc) using CSOM API? In the User class (Microsoft.SharePoint.Client.User) i saw properties like Email, Title are possible to get and set. I tried updating these properties through code like below, but it is not getting updated in SharePoint. Is there any alternative way?
String updateUser= "john alex";
User user1 = web.EnsureUser(updateUser);
user1.Email = "adc01@example.com";
clientContext.Load(user1);
clientContext.ExecuteQuery();
Regards
Shahabas