How to add a contact to multiple users
How to add a contact to multiple users
This article will show how to add a contact to multiple users with an automation script.
Resolution
zmprov -l gaa > /tmp/users; for i in `cat /tmp/users`; do zmmailbox -z -m $i cct email "contact3@domain.com" firstName "contact" lastName "3"; done
The command above first creates a list of all users, and then creates the account "contact3" to all of them. If you like to add it to a group of users, you need to specify them manually, or grep for a specific domain. Later you place the first and second name for the contact.
Additional Content
createContact(cct) [opts] [attr1 value1 [attr2 value2...]] -f/--folder <arg> folder-path-or-id -T/--tags <arg> list of tag ids/names -i/--ignore ignore unknown contact attrs