Service: zimbraAdmin

Command: GetAccount
Namespace: urn:zimbraAdmin
Description: Get attributes related to an account
{request-attrs} - comma-seperated list of attrs to return

Note: this request is by default proxied to the account's home server

Access: domain admin sufficient
Properties:
Authorization token required true
Admin Authorization token required true

GetAccountRequest

    <GetAccountRequest [applyCos="{apply-cos} (0|1)"] [attrs="{request-attrs}"]> ## GetAccountRequest
        <account by="{acct-selector-by} (adminName | appAdminName | id | foreignPrincipal | name | krb5Principal)">{key}</account> ## AccountSelector
    </GetAccountRequest>

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

XPath Required / Optional Description
@applyCos Optional (0 or 1) Type: 0|1
Flag whether or not to apply class of service (COS) rules
1 (true) [default] COS rules apply and unset attrs on an account will get their value from the COS
0 (false) only attributes directly set on the account will be returned
@attrs Optional (0 or 1) Type: String
Comma separated list of attributes
/account Optional (0 or 1) Type: {key}
Account
Description for element text content:The key used to identify the account. Meaning determined by {acct-selector-by}
/account@by Required (only 1) Type: adminName | appAdminName | id | foreignPrincipal | name | krb5Principal
Select the meaning of {acct-selector-key}

GetAccountResponse

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

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

XPath Required / Optional Description
/account Required (only 1) Account information
/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