Page 1 of 1
SOAP access to user account via admin password
Posted: Sat Apr 25, 2015 2:42 pm
by jmckay123
Can somebody explain how to use the SOAP API so that I can access information for a normal user, using an administrator Id and password? I have figured out how to execute AuthRequest, supplying a user name and password to get a auth token, then use that token to execute GetFolderRequest. But say I want to get the folder list for
user@example.com without knowing his password, but I do have the administrator name and password. If I were to use the admin credentials to get a token, then how would I specify which user I want to access? Any help greatly appreciated.
SOAP access to user account via admin password
Posted: Mon Apr 27, 2015 4:56 pm
by jmckay123
I have since seen the "DelegateAuthRequest" API, but it does not seem to work. Anybody see anything wrong with the following:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="
http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<context xmlns="urn:zimbra">
<authToken>0_1de35e9c3928d1f15105dce...3b</authToken>
<format type="js"/>
</context>
</soap:Header>
<soap:Body>
<DelegateAuthRequest xmlns="urn:zimbraAdmin">
<account by="name">jmckay12</account>
</DelegateAuthRequest>
</soap:Body>
</soap:Envelope>
I get http response 500, error "document not found".