Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

How to update user properties using CSOM

$
0
0
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

Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>