Page 1 of 1

How to run zmprov ma on all users?

Posted: Wed Feb 01, 2012 2:36 am
by davidkillingsworth
I would like to run a zmprov ma command on all user accounts.
I have already tested that this works:
zmprov ma user@mydomain.com zimbraPrefSharedAddrBookAutoCompleteEnabled TRUE
This sets the "Include addresses in shared address books" in the preferences which unfortunately is not a setting in the Class of Service in the Web Administration Panel.
I would like to run this for all users though. Can I use a "*" to run the command for all users?

zmprov ma * zimbraPrefSharedAddrBookAutoCompleteEnabled TRUE

How to run zmprov ma on all users?

Posted: Wed Feb 01, 2012 7:35 am
by phoenix
[quote user="davidkillingsworth"]I would like to run a zmprov ma command on all user accounts.[/QUOTE]You'll need to use a script to apply this to all accounts.

How to run zmprov ma on all users?

Posted: Wed Feb 01, 2012 9:55 am
by Krishopper


for account in $(zmprov -l gaa); do

echo "ma $account zimbraPrefSharedAddrBookAutoCompleteEnabled TRUE"

done | zmprov