Results 1 to 2 of 2

Thread: Get list of Aliases via SOAP.

Threaded View

  1. #1
    Join Date
    Sep 2012
    Rep Power

    Default Get list of Aliases via SOAP.

    I've been reading through the admin api reference documents, but I can't seem to find a way to list aliases already created for the domain.

    There is, of course, the addAccountAlias command:

    <AddAccountAliasRequest id="{value-of-zimbra-id}" alias="{alias}" />
    And the removeAccountAlias command:

    <RemoveAccountAliasRequest [id="{value-of-zimbra-id}"] alias="..." />

    But I don't see a method to retrieve aliases for a domain.

    Any help on this would be greatly appreciated.


    I've found the solution, the aliases for any given account are found in an attribute of the account called "zimbraMailAlias" in the GetAccount/GetAllAccounts response.

    <soap:Envelope><soap:Header><context xmlns="urn:zimbra"><change token="2499"/></context></soap:Header><soap:Body><GetAllAccountsResponse xmlns="urn:zimbraAdmin">
    <account id="343058d1-0b31-4aad-8cc5-1bd819a597a5" name="someone@somewhere">
    <a n="zimbraMailAlias">alias1@somewhere</a>
    <a n="zimbraMailAlias">alias2@somewhere</a>
    Last edited by cdn_jgalley; 09-24-2012 at 07:10 AM. Reason: solved

Similar Threads

  1. Error during exporting user list along with aliases
    By breejesh in forum Administrators
    Replies: 5
    Last Post: 12-27-2010, 08:19 AM
  2. Replies: 0
    Last Post: 05-19-2009, 10:59 AM
  3. How to list accounts with their associated aliases?
    By skerns in forum Administrators
    Replies: 2
    Last Post: 03-10-2009, 02:10 PM
  4. Replies: 1
    Last Post: 12-03-2008, 04:23 AM
  5. [SOLVED] Getting a list of aliases
    By jsabater in forum Administrators
    Replies: 3
    Last Post: 10-31-2008, 04:06 AM

Tags for this Thread

Posting Permissions

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