Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-2010, 01:05 AM
Intermediate Member
 
Posts: 21
Default [SOLVED] Modify account display name from csv.

Hi,
I need to update all account information from .csv file (need to change first name, last name and display name for existing accounts).

If i try Bulk Provision then i get message "account already exists".
Is there any command or script to modify all accounts from .csv file?

I have zimbra collaboration suite 6.0.1 on ubuntu server.

Thnx.
Reply With Quote
  #2 (permalink)  
Old 04-16-2010, 03:56 AM
Advanced Member
 
Posts: 236
Default

Yes.

Use something like "zmprov modifyAccount $user@$domain displayName $newName"

If you'll be doing many accounts at once it's best to have all the zmprov instructions in a single file and then feed it into the command. In other words, have a script that processes the csv file and comes up with something like

ma user1@example.com displayName "User 1"
ma user2@example.com displayName "User 2"
ma user3@example.com displayName "User 3"

and then take that file and have zmprov read it:

zmprov < instructionFile.txt

it will be considerably faster.

ma is the equivalent to modifyAccount...and be ware the blank spaces
Reply With Quote
  #3 (permalink)  
Old 04-16-2010, 04:08 AM
Intermediate Member
 
Posts: 21
Default

Thanks, i will try it.
Reply With Quote
  #4 (permalink)  
Old 04-16-2010, 05:09 AM
Intermediate Member
 
Posts: 21
Default

So fat it works great.
Is there any command to change First and Last name? Like displayName.
Can't find it in documentation.

just found out that Last name is "sn".
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.