SOAP access to user account via admin password

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
jmckay123
Posts: 7
Joined: Sat Sep 13, 2014 3:57 am

SOAP access to user account via admin password

Postby jmckay123 » Sat Apr 25, 2015 2:42 pm

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.



jmckay123
Posts: 7
Joined: Sat Sep 13, 2014 3:57 am

SOAP access to user account via admin password

Postby jmckay123 » Mon Apr 27, 2015 4:56 pm

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".

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 3 guests