Updating User Profile Properties

Aug 17, 2015 at 1:32 PM

I have created a custom 'Update Profile Details' page. JavaScript populates fields on a particular page with properties from the current user's profile. The user can then update the various fields, click on a save button that will then submit the details to the UPS. The only issue is that normal users cannot successfully update their own properties with the save button, however the administrators that developed the page and built the environment can use it OK.

The code to submit properties was taken from this page under the heading "2. Create UpdateUserProfile() Function".

So the function is trying to submit to the UPS as the current user, but it unable to update, throwing this error: “Attempted to perform an unauthorized operation.".

Additionally we would also like to re-create the OOTB functionality where a user's Assistant can update that user's profile on their behalf. Would this take effect once we have resolved the first issue of updating as the current user or will we need extra customisation via SPServices or is this not at all possible?

Am I missing something with permissions? Any help would be greatly appreciated.

Kind regards,