I think there is a bug in the import. I am setting all of these fields so if I have to have another field to make this work, please let me know.
$data['username'] = strtolower($row->username); $data['password'] = 'somepass'; $data['language'] = 'en'; $data['firstName'] = substr($row->firstname,0,25); $data['lastName'] = iif(strlen(trim($data['lastName']))<3,'NoLast',substr($row->lastname,0,25)); $data['mobilePhone'] = clean_phone($row->cell_phone); $data['primaryEmail']['emailAddress'] = $row->notification_email; $response = createApiCall(variable_get('zurmourl'). '/users/user/api/create/' , 'POST', $headers, array('data' => $data)); $response = json_decode($response, true);
On another note, I've noticed that I can delete users with the API but not the Zurmo UI, is this by design? The delete user api works good. I've had to use it a lot today, and I think I'll have to use it again since none of my passwords got set.