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

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 12-23-2009, 03:44 AM
Elite Member
 
Posts: 469
Question How to update Preferences with zmsoap ?

I am trying to figure out how to update a users preferences using zmsoap

For example I can retrieve my Out-Of-Office message starting date with

Code:
[zimbra@zimbra ~]$ zmsoap  -t account -m user@domain -p password GetPrefsRequest pref/@name=zimbraPrefOutOfOfficeFromDate
<GetPrefsResponse xmlns="urn:zimbraAccount">
  <pref name="zimbraPrefOutOfOfficeFromDate">20091223000000Z</pref>
</GetPrefsResponse>
[zimbra@zimbra ~]$
And according to the documentation there is a SOAP request ModifyPrefsRequest

But if i run

Code:
[zimbra@zimbra ~]$ zmsoap -t account -m user@domain -p password ModifyPrefsRequest pref/@name=zimbraPrefOutOfOfficeFromDate @value=20091223000000Z
<ModifyPrefsResponse xmlns="urn:zimbraAccount"/>
[zimbra@zimbra ~]$
it ends up removing the preference setting entirely (setting it to no value)

Can somebody please help me understand what I am doing wrong.

Thanks.
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.