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...
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...
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.
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 gc default | grep zimbraId
-AubreyCode:$ zmprov sa zimbraCOSId=biglongstring
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.
I get nothing back... (used admin)...
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?
There are currently 1 users browsing this thread. (0 members and 1 guests)