Just in case you still need it, or will need it in the future...
Quote:
#!/bin/bash
# Script for setting the zimbraPasswordMustChange attribute enable or disable
zmprov gaa > accountsList.txt
while read user
do
echo $user
zmprov ma $user $1 $2
done < accountsList.txt
rm accountsList.txt |
You can make a bulk change of any attribute. For example
./bulkAccountAttributeChange.sh zimbraPasswordMustChange FALSE