Results 1 to 4 of 4

Thread: [SOLVED] Modify account display name from csv.

  1. #1
    yuris is offline Intermediate Member
    Join Date
    Nov 2009
    Posts
    21
    Rep Power
    5

    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.

  2. #2
    odeleon is offline Advanced Member
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    5

    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

  3. #3
    yuris is offline Intermediate Member
    Join Date
    Nov 2009
    Posts
    21
    Rep Power
    5

    Default

    Thanks, i will try it.

  4. #4
    yuris is offline Intermediate Member
    Join Date
    Nov 2009
    Posts
    21
    Rep Power
    5

    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".

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Export Account information to csv
    By telescop in forum Administrators
    Replies: 5
    Last Post: 12-10-2010, 08:05 AM
  2. CSV Account Provisioning
    By f0rd42 in forum Administrators
    Replies: 4
    Last Post: 03-20-2010, 02:01 PM
  3. Replies: 0
    Last Post: 10-14-2009, 10:03 AM
  4. Account Display
    By lwinstead in forum Administrators
    Replies: 4
    Last Post: 02-13-2009, 07:32 AM
  5. Account display
    By useopenid in forum General Questions
    Replies: 2
    Last Post: 07-15-2008, 03:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •