How to get last modified date of account or get account based on last modified date?

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
UmeshRajani
Posts: 1
Joined: Thu Apr 14, 2016 9:13 am

How to get last modified date of account or get account based on last modified date?

Post by UmeshRajani »

Hi,

I want to get last modified date of zimbra accounts using SOAP call searchDirectoryRequest.
Here I set type as 'accounts' and query like "mdate>1/1/2016", but I always get 0 accounts even if there are many accounts modified after that date.

I have also tried query like:

"mdate>1/1/2016"
"mdate >1451611887000Z"
"modifyTimestamp >1451611887000Z"

Please correct me if I miss something here.

Thanks,
Umesh
User avatar
ppearl
Advanced member
Advanced member
Posts: 114
Joined: Thu May 15, 2014 7:36 am

Re: How to get last modified date of account or get account based on last modified date?

Post by ppearl »

Have you tried something like:

Code: Select all

zmsoap -z -v SearchDirectoryRequest @types="accounts" @attrs="modifytimestamp" query="(modifytimestamp>=20160414203421Z)"
You probably already have this, but just in case, here's a reference for various attrs supported by the request too:
https://files.zimbra.com/docs/soap_api/ ... ctory.html

See also:
https://wiki.zimbra.com/wiki/Zmsoap#Sea ... oryRequest
Post Reply