Service: zimbraAdmin

Command: GetAccountMembership
Namespace: urn:zimbraAdmin
Description: Get distribution lists an account is a member of
Properties:
Authorization token required true
Admin Authorization token required true

GetAccountMembershipRequest

    <GetAccountMembershipRequest> ## GetAccountMembershipRequest
        <account by="{acct-selector-by} (adminName | appAdminName | id | foreignPrincipal | name | krb5Principal)">{key}</account> ## AccountSelector
    </GetAccountMembershipRequest>

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

XPath Required / Optional Description
/account Required (only 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}

GetAccountMembershipResponse

    <GetAccountMembershipResponse> ## GetAccountMembershipResponse
        (<dl [dynamic="{group-is-dynamic} (0|1)"] via="{via-dl-name}" name="{name}" id="{id}"> ## DLInfo
            (<a n="{key}" /> ## Attr)*
          </dl>)*
    </GetAccountMembershipResponse>

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

XPath Required / Optional Description
/dl Optional (0 or more) List membership information
/dl@dynamic Optional (0 or 1) Type: 0|1
Flags whether a group is dynamic or not
/dl@via Required (only 1) Type: String
Present if the account is a member of the returned list because they are either a direct or indirect member of another list that is a member of the returned list. For example, if a user is a member of engineering@domain.com, and engineering@domain.com is a member of all@domain.com, then
     <dl name="all@domain.com" ... via="engineering@domain.com"/>
 
would be returned.
/dl@name Required (only 1) Type: String
Name
/dl@id Required (only 1) Type: String
ID
/dl/a Optional (0 or more) Attributes
/dl/a@n Required (only 1) Type: String
Key