I have added a new field to the user profile on my site (i.e. in /admin/config/people/accounts/fields), a boolean value that can be either 0 or 1. Existing users have no value. How can I easily set a value for all existing users?
Use Views Bulk Operations Module to update field values
This module augments Views by allowing bulk operations to be executed on the displayed rows. It does so by showing a checkbox in front of each node, and adding a select box containing operations that can be applied.
- Create a view of type
Bulk operations: Userfield and choose
Modify entity valuescheckbox to select your boolean field