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

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 03-12-2009, 02:58 PM
ljm ljm is offline
Project Contributor
 
Posts: 81
Default [SOLVED] use zmsoap for a grant request

I'm wondering whether it's possible (and if so, what the syntax is) to grant a sharing request using zmsoap.

This is my best guess at the syntax:
zmsoap -v -m user1 -p password -e FolderActionRequest/action @op=grant @id=7 -e grant @perm=rwidx @gt=usr @inh=1 @d=user2

but it generates this request which isn't right:
<FolderActionRequest xmlns="urn:zimbraMail">
<action op="grant" id="7" perm="rwidx" gt="usr" inh="1" d="user2">
<grant/>
</action>
</FolderActionRequest>

What I can't work out is how to assocate the @perm @gt @inh and @d attributes with <grant> instead of <action> - it seems like the the command line ordering isn't respected.

If it's not possible to do this via zmsoap, that's cool I know there are other options here ie zmprov and direct use of the SOAP api, but zmsoap is handy for testing.
__________________
Zindus - contact sync for Thunderbird and Zimbra
Reply With Quote
  #2 (permalink)  
Old 03-13-2009, 12:17 PM
ljm ljm is offline
Project Contributor
 
Posts: 81
Default

Answering my own question here ... in case anyone else runs across this thread.

After reading the source:
FRANKLIN/ZimbraCommon/src/java/com/zimbra/common/soap/SoapCommandUtil.java

I can see that it's not possible to create a <grant> using zmsoap because as currently written, the attribute expressions @a=b are all associated with the root element (in this example: FolderActionRequest/action).
__________________
Zindus - contact sync for Thunderbird and Zimbra

Last edited by ljm; 03-13-2009 at 12:23 PM..
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.