How to add a new user meta field for all users in wordpress

$users = get_users();
foreach( $users as $user ) {
$uid=$user->ID;
add_user_meta($uid, ‘newfield’,’0′);
}
}