Results 1 to 6 of 6

Thread: Admin : how to find users having a particular cos ?

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Location
    Bordeaux, France
    Posts
    140
    Rep Power
    8

    Default Admin : how to find users having a particular cos ?

    In order to check if users were not set up with a wrong CoS, i would like to dislplay :
    - the list of users that have a particular Cos
    - Or in the Cos, have a list of members of this Cos...

  2. #2
    Join Date
    Nov 2005
    Posts
    1
    Rep Power
    9

    Default

    It would be nice if this ability were in the admin UI, but I don't remember seeing anywhere.

    Anyway, one way to do this would be to query the users from the command line via the zmprov command.

    First, you need to find out what the zimbraId is of the CoS you are looking for.

    Code:
    $ zmprov gc default | grep zimbraId
    This gives you a big long string value. Now use that string in another zmprov command in order to get the list of users in that CoS.

    Code:
    $ zmprov sa zimbraCOSId=biglongstring
    -Aubrey

  3. #3
    Join Date
    Dec 2006
    Posts
    184
    Rep Power
    8

    Default

    Quote Originally Posted by alewman View Post
    Code:
    $ zmprov gc default | grep zimbraId
    This gives you a big long string value. Now use that string in another zmprov command in order to get the list of users in that CoS.

    Code:
    $ zmprov sa zimbraCOSId=biglongstring
    -Aubrey
    Problem is, users in the default COS, do not have an entry for zimbraCOSId...

  4. #4
    Join Date
    Apr 2006
    Location
    Illinois
    Posts
    194
    Rep Power
    9

    Default

    Really? I'm on 4.5.6 and my users in default have a zimbraCOSId. Can you do:
    zmprov ga accountindefault | grep zimbraCOSId

    Should give you the COS also...unless they changed that between 4.5.6 and 4.5.10.

  5. #5
    Join Date
    Dec 2006
    Posts
    184
    Rep Power
    8

    Default

    I get nothing back... (used admin)...

  6. #6
    Join Date
    Apr 2006
    Location
    Illinois
    Posts
    194
    Rep Power
    9

    Default

    Hmmm.... you know what, I just realized that all of our users are created using a script, and in that script we specified the COS. That probably explains why mine show properly. I have a 4.5.11 test system that the zimbraCOSId does not show up in the zmprov ga command. If you want to be sure that the users are in their proper COS's, and you have a list of those accounts and the COS they should be in, you could always run a zmprov command to set them.

    You could always run a check of which users are in the other COS's and whoever isn't in those are in default...just a thought.

    Anyone else?

Similar Threads

  1. HOWTO: Find accounts using a COS
    By peter@mxtoolbox.com in forum Administrators
    Replies: 6
    Last Post: 08-29-2007, 08:27 AM
  2. 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
  3. Replies: 0
    Last Post: 12-09-2006, 02:16 PM
  4. Replies: 7
    Last Post: 04-14-2006, 01:12 PM
  5. Admin GUI COS dropdown in user general tab problem.
    By dhallweb in forum Administrators
    Replies: 5
    Last Post: 04-12-2006, 11:16 AM

Posting Permissions

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