Service: zimbraAdmin

Command: GetAllAccounts
Namespace: urn:zimbraAdmin
Description: Get All accounts matching the selectin criteria
Access: domain admin sufficient
Properties:
Authorization token required true
Admin Authorization token required true

GetAllAccountsRequest

    <GetAllAccountsRequest> ## GetAllAccountsRequest
        <server [by="{server-by} (id | name | serviceHostname)"]>{key}</server> ## ServerSelector
        <domain [by="{domain-selector-by} (id | name | virtualHostname | krb5Realm | foreignName)"]>{key}</domain> ## DomainSelector
    </GetAllAccountsRequest>

elements and attributes you can define within a <GetAllAccountsRequest> element:

XPath Required / Optional Description
/server Optional (0 or 1) Type: {key}
Server
Description for element text content:Key for choosing server
{server-by}="id" Use server's zimbraId as the Key
{server-by}="name" Use name of the server as the Key
{server-by}="serviceHostname" Use server's value for attr zimbraServiceHostname as the Key
/server@by Optional (0 or 1) Type: id | name | serviceHostname
Selects the meaning of {server-key}
/domain Optional (0 or 1) Type: {key}
Domain
Description for element text content:The key used to identify the domain. Meaning determined by {domain-selector-by}
/domain@by Optional (0 or 1) Type: id | name | virtualHostname | krb5Realm | foreignName
Select the meaning of {domain-selector-key}

GetAllAccountsResponse

    <GetAllAccountsResponse> ## GetAllAccountsResponse
        (<account [isExternal="{is-external} (0|1)"] name="{name}" id="{id}"> ## AccountInfo
            (<a n="{key}" /> ## Attr)*
          </account>)*
    </GetAllAccountsResponse>

elements and attributes you can define within a <GetAllAccountsResponse> element:

XPath Required / Optional Description
/account Optional (0 or more) Information on accounts
/account@isExternal Optional (0 or 1) Type: 0|1
Whether the account's zimbraMailTranport points to the designated protocol(lmtp) and server(home server of the account).
/account@name Required (only 1) Type: String
Name
/account@id Required (only 1) Type: String
ID
/account/a Optional (0 or more) Attributes
/account/a@n Required (only 1) Type: String
Key