Page 1 of 1

Creating bulk users

Posted: Tue Feb 06, 2018 8:05 am
by somnathndy
Hi,
I am very new to Zimbra. I have installed Zimbra Open Source on CentOS 6.9 in a single server. It is up and running perfectly. Now I want to create 20nos users at a time with all the fields fill up with proper data available in user creation form. I have tried a lot on Google but could not find out a format for txt/csv file to import.

Please help on the same.

Thanks in advance.

Re: Creating bulk users

Posted: Tue Feb 06, 2018 12:07 pm
by jorgedlcruz

Re: Creating bulk users

Posted: Tue Feb 06, 2018 2:46 pm
by L. Mark Stone
somnathndy wrote:Hi,
I am very new to Zimbra. I have installed Zimbra Open Source on CentOS 6.9 in a single server. It is up and running perfectly. Now I want to create 20nos users at a time with all the fields fill up with proper data available in user creation form. I have tried a lot on Google but could not find out a format for txt/csv file to import.

Please help on the same.

Thanks in advance.


There is . wiki for this:
https://wiki.zimbra.com/wiki/Bulk_Provisioning

But I would recommend you create, using the Admin Console, a single user account (e.g. test-user@yourdomain.com), with all of the user's fields filled out exactly as you would like for all of your users.

You can then execute as the Zimbra user:

zmprov ga test-user@yourdomain.com > /tmp/zimbra-account-fields.txt

to get a list of all of the Zimbra variables you will want to populate.

As Jorge mentioned in his post above, the process is straightforward:

1. Create a file called something like "bulk-provision.zmp" with a list of statements starting with cd (create domain), ca (create account), or any other zmprov provisioning command for creating and populating things like distribution lists.

2. Launch a single zmprov process and feed it the contents of the file, as in "zmprov -f /tmp/bulk-provision.txt".

3. Watch the output on the screen for any errors, and you are done!

Hope that helps,
Mark