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.
somnathndy
Posts: 1
Joined: Tue Feb 06, 2018 7:47 am

Creating bulk users

Postby somnathndy » Tue Feb 06, 2018 8:05 am

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: 2769
Joined: Thu May 22, 2014 4:47 pm

Re: Creating bulk users

Postby jorgedlcruz » Tue Feb 06, 2018 12:07 pm

Jorge de la Cruz https://jorgedelacruz.es
Technical Marketing Manager at Zimbra/Synacor https://www.zimbra.com/
User avatar
L. Mark Stone
Elite member
Elite member
Posts: 1871
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine
ZCS/ZD Version: 8.8.10 Network Edition
Contact:

Re: Creating bulk users

Postby L. Mark Stone » Tue Feb 06, 2018 2:46 pm

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/
Zeta Alliance http://www.zetalliance.org/

Return to “Users”

Who is online

Users browsing this forum: No registered users and 6 guests