Update new user's profile with rules, based on his webform submitted data On my site I am using two webforms from which a user can register to the site. This feature is enabled thanks to the webform_registration module. Of course these webforms can only be submitted by anonymous users.

What I want is, on the event of a submission, to populate the profile of the user who submitted the form with some of the data that were submitted. So I created a rule catching the event of a webform submission. Now how will I update the profile? Setting a data value on a user field does not work since the user who submitted the form was anonymous! He was created after. How can I do this? All I know about the user is just his username that can be pulled from the submission data. Any way to retrieve the user entity using his username and then writing the data to his profile?
You need to create and force-save both the User and the User's Profile before you set your data values.  Your rules actions should look like the following:


Create Entity - User
Save Entity - User, Force Save
Create Entity - Profile, choose profile type.
Save Entity - Profile, Force Save
Set Data Value(s)