1 (edited by Clauu 2022-01-28 17:51:59)

Topic: Restful API extra option

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.5.1 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer?   downloadable installer
- Linux/BSD distribution name and version:  debian11 x64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Good day, thank you for your work on this product, very robust with lots of features. Regarding to RestfulAPI
https://docs.iredmail.org/iredadmin-pro … l.api.html
could you please add the employeeid field in Mail User section? It would be very usefull to have it for insertion, searching, deleting, disabling etc
We imported ~ 360 users via provided script import_users.py and now it's very time consuming to edit each user manually from web interface. We could do some scripting and do it via sql, but i think it will be a better option via API.
Thank you.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Restful API extra option

Sorry about the trouble, and thank you very much for the feedback.

emaployeeid is available in PUT action (updating user profile), although not in POST (create a new user).
That means you can update it AFTER created the user.

We will try to add a new field to assign the employee id in "import_users.py" in future release and do the PUT action.

3

Re: Restful API extra option

Dear Clauu,

Script "tools/import_users.py" now supports employee id. This improvement will be available in next iRedAdmin-Pro release. Contact us if you need it now. https://www.iredmail.org/contact.html

Thanks for the feedback. smile

4

Re: Restful API extra option

Update: we sent you a patched version moment ago, please follow our tutorial to upgrade:
https://docs.iredmail.org/migrate.or.up … admin.html