Results 1 to 2 of 2

Thread: Set zimbraPrefFromAddress via SOAP

  1. #1
    Tobo is offline New Member
    Join Date
    May 2011
    Posts
    3
    Rep Power
    4

    Default Set zimbraPrefFromAddress via SOAP

    Hi,


    I'm trying to set the attribute zimbraPrefFromAddress via SOAP with a ModifyAccountRequest:

    Code:
    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
       <soap:Header>
          <context xmlns="urn:zimbra">
             <authToken>0_bc7...</authToken>
             <nosession/>
          </context>
       </soap:Header>
       <soap:Body>
    <ModifyAccountRequest xmlns="urn:zimbraAdmin">
     <id>bb4250d5-f214-45f3-b274-49561b90549c</id>
      <a n="zimbraPrefFromAddress">f.l@domain.com</a>
    </ModifyAccountRequest>
       </soap:Body>
    
    </soap:Envelope>
    The response:

    Code:
       <soap:Body>
          <soap:Fault>
             <soap:Code>
                <soap:Value>soap:Sender</soap:Value>
             </soap:Code>
             <soap:Reason>
                <soap:Text>permission denied: cannot access attribute zimbraPrefFromAddress on account target test@domain.com</soap:Text>
             </soap:Reason>
             <soap:Detail>
                <Error xmlns="urn:zimbra">
                   <Code>service.PERM_DENIED</Code>

    Why am I not allowed to do this? The auth code is generated using a domain account.

    Any ideas?

    Regards
    Tobo

  2. #2
    PhD
    PhD is offline Senior Member
    Join Date
    Jun 2011
    Posts
    68
    Rep Power
    4

    Default

    i do it very similarly... using the authtoken of a global admin....
    and $ID is the user's zimbraID
    and $FIRSTLOWER and $LASTLOWER are their first and last names in lowercase

    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
    <context xmlns="urn:zimbra">
    <authToken>$AUTHTOKEN</authToken>
    <nosession/>
    </context>
    </soap:Header>
    <soap:Body>
    <ModifyAccountRequest xmlns="urn:zimbraAdmin">
    <id>$ID</id>
    <a n="zimbraPrefFromAddress">$FIRSTLOWER.$LASTLOWER@d omain.com</a>
    </ModifyAccountRequest>
    </soap:Body>
    </soap:Envelope>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Zimbra Crashes every day
    By feiticeir0 in forum Administrators
    Replies: 10
    Last Post: 10-13-2011, 06:53 AM
  2. Random Jabber disconnects
    By jsilence in forum Administrators
    Replies: 3
    Last Post: 08-16-2011, 12:34 PM
  3. zmzimletctl deploy zimbra_posixaccount.zip - ERROR -
    By todd_dsm in forum Administrators
    Replies: 0
    Last Post: 04-02-2009, 01:41 PM
  4. Replies: 1
    Last Post: 03-19-2008, 01:51 AM
  5. Update Received Date in Folder-Listing
    By Oswald-Kolle in forum Installation
    Replies: 25
    Last Post: 08-21-2007, 04:21 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
  •