It would appear the directive "attrs" on SearchDirectoryRequest does nothing.
According to soap-admin.txt:
SearchDirectoryRequest
attrs - comma-seperated list of attrs to return ("displayName", "zimbraId", "zimbraAccountStatus")
My example request:
Code:
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<authToken>MY_REALLY_LONG_AUTH_TOKEN</authToken>
<sessionId id="SESSIONID">SESSIONID</sessionId>
</context>
</soap:Header>
<soap:Body>
<SearchDirectoryRequest xmlns="urn:zimbraAdmin" attrs="displayName" limit="50" domain="domain.net" types="accounts,distributionlists,aliases">
<query>(|(uid=*@domain.net)(mail=*@domain.net)(zimbraMailAlias=domain*@domain.net)(zimbraMailDeliveryAddress=domain*@domain.net))</query>
</SearchDirectoryRequest>
</soap:Body>
</soap:Envelope> The response I get:
Code:
Array
(
[SOAP:ENVELOPE] => Array
(
[XMLNS:SOAP] => http://www.w3.org/2003/05/soap-envelope
[SOAP:HEADER] => Array
(
[CONTEXT] => Array
(
[XMLNS] => urn:zimbra
[SESSIONID] => Array
(
[TYPE] => admin
[ID] => ADMINID
[DATA] => ADMINID
)
[CHANGE] => Array
(
[TOKEN] => ADMINTOKEN
)
)
)
[SOAP:BODY] => Array
(
[SEARCHDIRECTORYRESPONSE] => Array
(
[MORE] => 0
[SEARCHTOTAL] => 5
[XMLNS] => urn:zimbraAdmin
[ACCOUNT] => Array
(
[0] => Array
(
[NAME] => example@domain.com
[ID] => EXAMPLES_ID
[A] => Array
(
[0] => Array
(
[N] => zimbraPrefCalendarReminderSoundsEnabled
[DATA] => TRUE
)
[1] => Array
(
[N] => zimbraPrefGalAutoCompleteEnabled
[DATA] => TRUE
)
[...] (Clipped)
So, I get every attr back regardless of the "attr" setting. I've tried changing this around every possible way - used "a1, a2, a3" and also "a1,a2,a3". Also used only values found on the account I was searching for - no difference.
Perhaps Im not the only one with this issue?
Thank you very much - Seandon.