How to run zmprov ma on all users?

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
davidkillingsworth
Outstanding Member
Outstanding Member
Posts: 221
Joined: Sat Sep 13, 2014 2:26 am
ZCS/ZD Version: 8.8.15.GA.3829.UBUNTU14.64 -Patch 1

How to run zmprov ma on all users?

Postby davidkillingsworth » Wed Feb 01, 2012 2:36 am

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


phoenix
Ambassador
Ambassador
Posts: 26751
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

How to run zmprov ma on all users?

Postby phoenix » Wed Feb 01, 2012 7:35 am

[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.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Krishopper
Outstanding Member
Outstanding Member
Posts: 769
Joined: Fri Sep 12, 2014 10:23 pm

How to run zmprov ma on all users?

Postby Krishopper » Wed Feb 01, 2012 9:55 am



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

echo "ma $account zimbraPrefSharedAddrBookAutoCompleteEnabled TRUE"

done | zmprov


Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 17 guests