Set boolean (single on/off checkbox) value while creating a user
The help message for this field says: If left empty, "1" will be used and if left empty, "0" will be used. So I left this field blank and assumed you could programmatically set the value while creating a user. This doesn't work at all for me.



You actually have to explicitly define the On and Off values in order to be able to set them while creating a user.



Then you can set the value in the user object.

'field_user_account_terms' =&gt; array(
                'und' =&gt; array(
                    0 =&gt; array(
                        'value' =&gt;  1,
                    ),
                ),
            ),