Before

su - zimbra

Class of Service (COS)

List all availabe COS

zmprov getAllCos

List COS (Class of Service) details
Set default values for groups of users: quota, etc.

zmprov gc default

Change User COS

zmprov setAccountCos account@domain.tld cosname

List all members of specific COS
First get the cos id that you want:
zmprov gac -v | grep -e cn: -e zimbraId

Then get all accounts with that COS:
COS_ID=’INSERT_THE_COS_ID_HERE’; zmprov -l gaa -v | grep -e uid: -e zimbraCOSId | grep -B1 $COS_ID | grep uid: | awk ‘{print $2}’

Advertisements