Zimbra SOAP API modify multiple accounts with one request

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
André
Posts: 7
Joined: Tue Sep 01, 2020 2:54 am

Zimbra SOAP API modify multiple accounts with one request

Post by André »

Hi, I have a script that sends an account modification request every hour, but I have many accounts (more than 1000) and I don't want to send 1000 requests, so I was wondering if there is a method to batch these accounts in just one request , I know it's possible in the zmprov command, but I'm using the soap API.

Thanks.
mgarbin
Posts: 35
Joined: Wed Jun 26, 2019 11:00 am

Re: Zimbra SOAP API modify multiple accounts with one request

Post by mgarbin »

Did you try to create an xml file with all the change and then send it with one comand?
Zimbra usually use the batch request, but you need to study how it works....

zmsoap help guide :

--json Use JSON instead of XML.
--file (-f) file-path Read request from file.

You can obtain how to write the xml from a zmsoap comand using "-v" option on a test modify comand.

Personally i prefer to use zmprov instead zmsoap , zmprov is easier to use for an admin ...
Post Reply