how to use user_save with custom column? I added custom column in users table, i would like to use user_save to create new user programmatically. How can i do that? This code doesn't work for custom columns:

$new_user = array(
                        'name' =&gt; 'Foo',
                        'pass' =&gt; $pwd,
                        'mail' =&gt; $email,
                        'signature_format' =&gt; 'filtered_html',
                        'status' =&gt; 1,
                        'language' =&gt; 'en',
                        'timezone' =&gt; 'Europe/Berlin',
                        'init' =&gt; $email,
                        'custom' =&gt; $custom_string,
                        'roles' =&gt; array(
                            DRUPAL_AUTHENTICATED_RID =&gt; 'authenticated user',
                            $role-&gt;rid =&gt; $role-&gt;name,
                        ),
                    );

                    $new_account = user_save(NULL, $new_user);


Everything except custom gets inserted, if i am not wrong it's default drupal columns for each user's table. Thanks
Manually adding extra columns in tables will rarely work for Drupal as there are dependencies and references that have to be honoured.

The correct way would be something along the lines of this case.