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

Can not update user profile property using CSOM for SharePoint onprem

$
0
0

I am trying to update user profile property using CSOM for SharePoint onpremise, but the value was not updated to the property. There is no error exception. I try with JSOM but it does not work also.

string accountName = "domain\\userloginname";
ClientContext clientContext = new ClientContext(url);
NetworkCredential ncr = new NetworkCredential(accountName, securePassword);
clientContext.Credentials = ncr;

var peopleManager = new PeopleManager(clientContext);
peopleManager.SetSingleValueProfileProperty(accountName, "AboutMe", "Value by CSOM");
clientContext.ExecuteQuery();


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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