Save user profile fields through plugin
You use setContentFromPost method on the UserModel if you are posting to your plugin, like so (this is what happens when you save your profile in the control panel):

$user-&gt;setContentFromPost('fields');


There is also a setContent method, which takes a ContentModel or an array:

$user-&gt;setContent([ 'fields' =&gt; ['field1' =&gt; 'value'] ])


Behind the scenes, that runs the setAttributes method.