Results 1 to 2 of 2

Thread: [SOLVED] use zmsoap for a grant request

  1. #1
    Join Date
    May 2006
    Rep Power

    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">

    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

  2. #2
    Join Date
    May 2006
    Rep Power


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

    After reading the source:

    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).
    Last edited by ljm; 03-13-2009 at 12:23 PM.
    Zindus - contact sync for Thunderbird and Zimbra

Similar Threads

  1. zmprov mc default zimbraFeatureNotebookEnabled TRUE
    By nbhanji in forum Installation
    Replies: 11
    Last Post: 04-29-2008, 10:39 AM
  2. DNS Questions and Trouble Installing
    By smurraysb in forum Installation
    Replies: 22
    Last Post: 03-14-2008, 03:27 PM
  3. Error loading on Mac OS X 10.4.10 server PPC
    By qprcanada in forum Installation
    Replies: 7
    Last Post: 10-26-2007, 06:25 AM
  4. Can not reach
    By Max Ma in forum Installation
    Replies: 14
    Last Post: 03-31-2007, 09:14 AM
  5. Replies: 26
    Last Post: 02-12-2007, 06:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts