Results 1 to 8 of 8

Thread: [SOLVED] Printing a list of users and groups

  1. #1
    Join Date
    Sep 2006
    Posts
    23
    Rep Power
    9

    Default [SOLVED] Printing a list of users and groups

    All:

    Is there a way within Zimbra to print a list of users, groups and the association of those users in those groups. Our environment is growing and we need to keep track of this.

    Any help here would be appreciated.

    Cheers

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    When you say groups do you mean distribution lists ?

    A good starting point is :- http://www.zimbra.com/forums/etc/199...alias-etc.html

  3. #3
    Join Date
    Sep 2006
    Posts
    23
    Rep Power
    9

    Default

    Yes, I do mean Distribution groups.

  4. #4
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

  5. #5
    Join Date
    Sep 2006
    Posts
    23
    Rep Power
    9

    Default

    I missed this one. Thanks, this should do it.

  6. #6
    Join Date
    Sep 2006
    Posts
    23
    Rep Power
    9

    Default

    I found the link you sent me very helpful, however I found that I could get a list of "Distribution Groups" and I found how to get a list of all members of a group. However, This has to be done one group at a time. I am not a script junky, is there a script that will collect all the groups information and print it out to a one file. You would think that Zimbra would have something like this to make it easier for all.

    Thanks for your help
    Last edited by mmj1000; 02-04-2009 at 07:10 AM.

  7. #7
    Join Date
    Oct 2006
    Posts
    27
    Rep Power
    8

    Default

    ...is there a script that will collect all the groups information and print it out to a one file.
    I was looking for something exactly like that early this week. I'm awful with scripting, but here's what I kludged together.

    It outputs a file named groupslist.txt into the /tmp directory that has first and last names of the people in the groups.


    Code:
    #!/bin/sh
    
    echo  >  /tmp/groupslist.txt
    
    for LISTNAME in `zmprov gadl`
    do
        echo $LISTNAME >> /tmp/groupslist.txt
        echo ------------------------------- >> /tmp/groupslist.txt
        for LISTMEMBER in `zmprov gdl $LISTNAME | grep zimbraMailForwardingAddress | cut -f2 -d " "`
            do
                DISPLAYNAME=`zmprov ga $LISTMEMBER | grep displayName | cut -f2,3 -d " "`
                echo $DISPLAYNAME >> /tmp/groupslist.txt
            done
        echo  >> /tmp/groupslist.txt
    done

  8. #8
    Join Date
    Sep 2006
    Posts
    23
    Rep Power
    9

    Default

    This works great. The script does however post some errors on some groups and states that they don't exit, but they show up in the text file. Not sure why this is but is not an issue as I can now get what I need.

    Thansk Much

Similar Threads

  1. Replies: 2
    Last Post: 12-10-2010, 03:19 AM
  2. Zimbra/Samba PDC: putting users in multiple groups
    By ajayrockrock in forum Administrators
    Replies: 3
    Last Post: 07-12-2010, 10:52 PM
  3. User Templates or Groups?
    By quietas in forum Administrators
    Replies: 6
    Last Post: 05-27-2008, 01:12 PM
  4. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  5. Replies: 0
    Last Post: 06-06-2007, 12:42 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
  •