title: Adding users and attributes programatically in Concrete5 version 8
body: <p>Hi I have recently followed some documentation to create new users from a csv file programatically. According to the Concrete5 docs/api there was method called getByID( $uID ) but this has since be deprecated!</p>
  
  <p>I am creating a new user like so:</p>
  
  <pre><code>$userRegistration = Core::make('user/registration');
  
  $file = fopen("test-users.csv","r");
  while (($data = fgetcsv($file)) !== FALSE) {
  echo "email address " . $data[0];
  $userRegistration-&gt;create([
  'uName' =&gt; $data[0],
  'uPassword' =&gt; $data[1],
  'uEmail' =&gt; $data[2],
  'uIsValidated' =&gt; true,
  ]);
  }
  </code></pre>
  
  <p>However if I want to add a value to an existing non-core attribute for instance lets call it user_county then how would I change this after programatically adding the user? I may need to do this for several user attributes as well so the values would need to come from the CSV and automatically be looped through to apply the correct value to the corresponding attribute whether it is blank or filled.</p>