Save user profile fields through plugin I have added additional fields to my user profiles. I need to be able to change and save these via my plugin. How do I set those values before calling

craft()-&gt;users-&gt;saveUser($user);
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.