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
  • Thank you. I know about server API, but I work with SharePoint Online, so it is not my case. I'll be looking for alternatives. Commented Mar 28, 2013 at 17:14
  • 2
    User profile properties are now writable via CSOM blogs.msdn.com/b/vesku/archive/2014/11/07/… Commented Jan 6, 2015 at 14:32

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.