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

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 02-01-2007, 12:07 PM
Special Member
 
Posts: 137
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...
Reply With Quote
  #2 (permalink)  
Old 02-01-2007, 05:20 PM
Starter Member
 
Posts: 1
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
Reply With Quote
  #3 (permalink)  
Old 04-25-2008, 09:55 AM
Special Member
 
Posts: 149
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...
Reply With Quote
  #4 (permalink)  
Old 04-25-2008, 12:41 PM
Trained Alumni
 
Posts: 193
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.
Reply With Quote
  #5 (permalink)  
Old 04-25-2008, 12:56 PM
Special Member
 
Posts: 149
Default

I get nothing back... (used admin)...
Reply With Quote
  #6 (permalink)  
Old 04-25-2008, 02:39 PM
Trained Alumni
 
Posts: 193
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?
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.