Code: Select all
<?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_90f732...30363b</authToken>
<userAgent name="MyAppName"/>
</context>
</soap:Header>
<soap:Body>
<AdminCreateWaitSetRequest defTypes="all" all-accounts="1" xmlns="urn:zimbraAdmin"/>
</soap:Body>
</soap:Envelope>
Code: Select all
<?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_363a4...0363b</authToken>
<userAgent name="MyAppName"/>
</context>
</soap:Header>
<soap:Body>
<AdminWaitSetRequest waitSet="WaitSet-0aa85e38-17fc-4500-a714-3c5fccc6ed6b" seq="0" block="1" xmlns="urn:zimbraAdmin" />
</soap:Body>
</soap:Envelope>
2018-04-13 15:33:03,251 INFO [Timer-Zimbra] [] session - WaitSet sweeper: 1 active WaitSets (0 accounts) - 1 sets with blocked callbacks
So why are 0 accounts affected when I am trying to monitor all of the accounts? As a test, I try to set up a wait set for a single user (I have tried this approach, and also using a delegate token and the account of the user):
Code: Select all
<?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_90f732...30363b</authToken>
<userAgent name="MyAppName"/>
</context>
</soap:Header>
<soap:Body>
<AdminCreateWaitSetRequest defTypes="all" all-accounts="0" xmlns="urn:zimbraAdmin">
<add>
<a id="myuser@mydomain.com" />
</add>
</soap:Body>
</soap:Envelope>
com.zimbra.common.service.ServiceException: permission denied: can not access account myuser@mydomain.com. If I'm using the admin token, why can't I access the user's account? If I'm using the delegate token for the user, why can't the user access his own account? Any help would be appreciated!