Hi @Julien St-Pierre Fortin ,
Please refer to following code to get PersonProperties
string serverUrl = "http://serverName/"; string targetUser = "domainName\\\\userName"; // Connect to the client context. ClientContext clientContext = new ClientContext(serverUrl); // Get the PeopleManager object and then get the target user's properties. PeopleManager peopleManager = new PeopleManager(clientContext); PersonProperties personProperties = peopleManager.GetPropertiesFor(targetUser); clientContext.Load(personProperties, p => p.AccountName, p => p.UserProfileProperties); clientContext.ExecuteQuery();
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.