8

I need to modify user profile properties using JavaScript (REST or CSOM). How can I do that?

I don't see any methods in MSDN documentation about modifying profile properties without server code.

Thank you

Update:

I found that old .asmx user profile service works well, but in SharePoint Online I cannot grant permissions for my account to change all users properties, so I can edit using .asmx only my editable properties. It is possible to grant permissions for account in on-premise SharePoint and edit all users properties from app, but this is not my case.

Update: If you are interesting in solution I recommend above there is stackexchange discussion about calling .asmx service with SharePoint Online

1 Answer 1

11

Update as on 07/01/2014

User profile properties are now writable via CSOM.

http://blogs.msdn.com/b/vesku/archive/2014/11/07/sharepoint-user-profile-properties-now-writable-with-csom.aspx

Thanks to Vardhaman Deshpande.

Original Answer

I am afraid if you can change User profile properties as stated by MSDN,

User profile properties from client APIs are read-only (except the profile picture, which you can change by using the PeopleManager.setMyProfilePicture method). If you want to change other user profile properties, you must use the server object model. For more information about working with user profiles

Source

If you want to change them through Server side code check this out,

Work with user profiles in SharePoint 2013

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.