This is a demonstration of Office 365 Patterns and Practices code, which shows how to use user profile client side object model (CSOM) to read and update user profile property values in SharePoint user profile store.
- How to read user profile properties using CSOM
- How to update single value user profile properties using CSOM
- How to update multi-value user profile properties using CSOM
Actual code and additional details can be found from following address - https://github.com/OfficeDev/PnP/tree/master/Samples/UserProfile.Manipulation.CSOM