Set user COS to automatic using CLI

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
ccesario
Posts: 12
Joined: Fri Sep 12, 2014 11:44 pm

Set user COS to automatic using CLI

Post by ccesario »

Hello folks,
Could someone tell if is possible set the user Class of Service (COS) to automatic using command line?
If yes, how to do it?


Thanks in advance!

__
ccesario
aletomi
Posts: 23
Joined: Fri Sep 12, 2014 10:22 pm

Re: Set user COS to automatic using CLI

Post by aletomi »

As zimbra user, just get COS id...
zmprov gac -v | grep "zimbraId:\|cn"

And then, set it to the user.
zmprov ma user@domain.com zimbraCOSId <Cos ID>
ccesario
Posts: 12
Joined: Fri Sep 12, 2014 11:44 pm

Re: Set user COS to automatic using CLI

Post by ccesario »

Hi aletomi,

Thank you by your answer.
But, I would like to set User COS as Automatic (using CLI), not set a existent COS.
Using web intetrface there is a checkbox for this, how do it using CLI?

Best regards

__
ccesario
rojoblandino
Advanced member
Advanced member
Posts: 52
Joined: Sat Sep 13, 2014 1:36 am

Re: Set user COS to automatic using CLI

Post by rojoblandino »

Still no solution for this.

Waiting....
danci1973
Posts: 7
Joined: Sat Sep 13, 2014 1:07 am

Re: Set user COS to automatic using CLI

Post by danci1973 »

I know this is an old thread, but I was just searching for this and nothing better came up, so I tried this:

Code: Select all

zmprov ma user@domain.com zimbraCOSId ''
And it works - the account's COS setting is removed, effectively changing it to 'auto'.
Post Reply