<div dir="ltr">Hi Andy,<div><br></div><div>Thank you for this code, with that i can create all my 300 user accounts.</div><div>This is a good way for creating bulk users and is working very nice.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 October 2015 at 04:18, Andy Kopciuch <span dir="ltr"><<a href="mailto:akopciuch@bddf.ca" target="_blank">akopciuch@bddf.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wednesday September 30 2015 11:42:12 <a href="mailto:signaldeveloper@gmail.com">signaldeveloper@gmail.com</a> wrote:<br>
> Hello,<br>
><br>
> We are migrating about users from our exchange to Kolab 3.4. Is there any<br>
> way to mass create email addresses? I know this question has been asked<br>
> before but I would like a script example if possible and a short how-to<br>
><br>
> Thanks again guys!!!!<br>
><br>
<br>
<a href="https://docs.kolab.org/architecture-and-design/kolab-wap-api.html" rel="noreferrer" target="_blank">https://docs.kolab.org/architecture-and-design/kolab-wap-api.html</a><br>
<br>
You can pretty much accomplish anything you want using the API available.  The<br>
kolab command line is a python implementation making use of the API.   The<br>
documentation has examples for both python and PHP.<br>
<br>
I went a different route, writing my own in PHP using the PEAR/Http_Request2<br>
module.   I found it made for a much easier to understand, and re-useable<br>
object oriented approach.  You could, in theory though, script things in any<br>
programming language you choose making calls to the API on your kolab server.<br>
<br>
The deployment I was working on had a time constraint, and I wrote this to<br>
serve my specific needs.   So things like type IDs on the user creation, or<br>
group creation are hard coded.  This could be made much more generic, and<br>
extended to all API calls.   I only implemented what I required.<br>
<br>
KolabWebService.php - Class implementing parts of the kolab API.<br>
<br>
I have attached examples demonstrating the use.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Andy<br>
</font></span><br>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.kolab.org">users@lists.kolab.org</a><br>
<a href="https://lists.kolab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.kolab.org/mailman/listinfo/users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span>_______________________________</span></div>
<div>Dumitru Ionut Catalin<br><br>e-mail: <a href="mailto:d.i.catalin@gmail.com" target="_blank">d.i.catalin@gmail.com</a></div>

<div> </div>
<div><span></span><span></span><br><br> </div></div></div></div></div>
</div>