Problem solved.
You need to add a row into tables
-users
-users_secure
-gacl_aro
-gacl_groups_aro_map
-groups
Thx for the support!
$sqlusers .= “INSERT INTO users (id, username, password, authorized, info, source, fname, mname, lname, suffix, federaltaxid, federaldrugid, upin, facility, facility_id, see_auth, active, npi, title, specialty, billname, email, email_direct, url, assistant, organization, valedictory, street, streetb, city, state, zip, street2, streetb2, city2, state2, zip2, phone, fax, phonew1, phonew2, phonecell, notes, cal_ui, taxonomy, calendar, abook_type, pwd_expiration_date, pwd_history1, pwd_history2, default_warehouse, irnpool, state_license_number, weno_prov_id, newcrop_user_role, cpoe, physician_type, main_menu_role, patient_menu_role) VALUES (”.$id.", ‘".$ar[$i]->{‘username’}."’, ‘NoLongerUsed’, ‘0’, NULL, NULL, ‘".$ar[$i]->{‘fname’}."’, NULL, ‘".$ar[$i]->{‘lname’}."’, NULL, NULL, NULL, NULL, ‘".$ar[$i]->{‘facility’}."’, ‘".$ar[$i]->{‘facility_id’}."’, ‘3’, ‘1’, NULL, NULL, NULL, NULL, ‘".$ar[$i]->{‘email’}."’, ‘".$ar[$i]->{‘email’}."’, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,‘0".$ar[$i]->{‘phonew1’}."’, NULL, ‘0".$ar[$i]->{‘phone’}."’, NULL, ‘1’, ‘207Q00000X’, ‘0’, ‘’, ‘0000-00-00’, NULL, NULL, ‘’, ‘’,’".$ar[$i]->{‘state_license_number’}."’, NULL, ‘erxdoctor’, NULL, ‘specialized_physician’, ‘standard’, ‘standard’);
";
$sqlpass .= "INSERT INTO `users_secure` (`id`, `username`, `password`, `salt`, `last_update`, `password_history1`, `salt_history1`, `password_history2`, `salt_history2`, `last_challenge_response`, `login_work_area`, `login_fail_counter`) VALUES (".$id.", '".$ar[$i]->{'username'}."', '".crypt($ar[$i]->{'password'},$salt[$i])."', '".$salt[$i]."', current_timestamp(), NULL, NULL, NULL, NULL, NULL, NULL, '0');
";
$sqlacl .= "INSERT INTO `gacl_aro` (`id`, `section_value`, `value`, `order_value`, `name`, `hidden`) VALUES (".$id.", 'users', '".$ar[$i]->{'username'}."', 10, '".$ar[$i]->{'fname'}." ".$ar[$i]->{'lname'}."', 0);
";
$sqlmap .="INSERT INTO `gacl_groups_aro_map` (`group_id`, `aro_id`) VALUES ('13', '".$id."');
";
$sqlgroup .="INSERT INTO `groups` (`id`, `name`, `user`) VALUES (NULL, 'Default', '".$ar[$i]->{'username'}."');
";