Creating bulk users

Post feedback about our hosted demo or your local install. Tell us what you love and/or what you’d like to see added in the future.
Post Reply
somnathndy
Posts: 1
Joined: Tue Feb 06, 2018 7:47 am

Creating bulk users

Post 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.
User avatar
jorgedlcruz
Zimbra Alumni
Zimbra Alumni
Posts: 2782
Joined: Thu May 22, 2014 4:47 pm

Re: Creating bulk users

Post by jorgedlcruz »

Hello,
Take a look to the next article: Best regards
Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/
User avatar
L. Mark Stone
Ambassador
Ambassador
Posts: 2796
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 10.0.6 Network Edition
Contact:

Re: Creating bulk users

Post 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
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
AWS Certified Solutions Architect-Associate
Post Reply