// add to the user/externallib.php the code // inside the function: create_users_parameters ... 'phone2' => new external_value(core_user::get_property_type('phone2'), 'Phone 2', VALUE_OPTIONAL), ...