Wednesday, 28 January 2015

Set user profile properties using JSOM & JavaScript

User Profile properties were recently made writable from the CSOM. Vesa Juvonen has a great post about it here . In addition to that, I have also blogged about how a Tenant admin can set the user profile properties of the users in the tenant.

In this post, I will show you how to set the current user's profile properties using the JavaScript Client Object Model (JSOM). Please refer to the 2 posts I have mentioned for any additional details around this.

Right now this functionality is only available in SharePoint Online/Office 365. If you want this functionality to come to SharePoint 2013 On-Premises, please create or up-vote on the feedback here: https://officespdev.uservoice.com/

5 comments:

Savan Gupta said...

thanks for posting this

Isanka Rathnayaka said...

Thank you.. was helpfull :)

Sarang Kulkarni said...

I am trying to reorder user profile properties in office 365 like moving property from one section to another section but unfortunately i have to do the same using move up and down button which is troublesome because after 2 - 3 attempts all moved properties come back to original position, please let me know if there is any mechanism other than move up and down button to change section of properties.

Vardhaman Deshpande said...

Hi Sarang, Unfortunately I think the only way to reorder the properties in SPO is to do it manually.

Rajesh Gubba said...

Thanks for the post. Good article.

Is there a way to update user profile properties through JavaScript in SharePoint 2013 On-Premises

Appreciate your help!