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 02-26-2010, 10:05 AM
Starter Member
 
Posts: 1
Smile How to get the aliases of a specific account holder

Hi,

I am able to connect to the soap admin via curl and get authenticated. My concern is I need to get the aliases(alias e-mail address & target e-mail address) of a specific user. I am connected via admin, just don't now what soap request to use.

I have tried to use this soap request but only accounts work and aliases return non:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<authToken>' . $authToken . '</authToken>
<sessionId id="' . $sessionId . '">' . $sessionId . '</sessionId>
</context>
</soap:Header>
<soap:Body>


<SearchDirectoryRequest xmlns="urn:zimbraAdmin" offset="0" limit="0" sortBy="name" sortAscending="1"
attrs="displayName, zimbraId, uid, description, EmailAddress, zimbraAccountStatus" types="accounts">
<query xmlns="">!(mail=*archive)</query>
</SearchDirectoryRequest>



</soap:Body>
</soap:Envelope>';

Help is much appreciated. Feedbacks and ideas.. 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.