I have been using the Remote API to administer my Virtualmin Server.
When I change a domain's username, the API does not change the administrator group as well. Though, when I change the username via the Web Interface, the administrator group gets updated.
I don't see a specific API parameter to change the administrator group in addition to the user.
Here is the CLI output:
root@slacky:~# virtualmin modify-domain --domain domaintest.com --user test
Updating virtual server domaintest.com ..
Modifying administration user .. .. done
Changing username in website configuration .. .. done
Updating user and group in Logrotate configuration .. .. done
Renaming MySQL user .. .. done
Renaming Webmin user .. .. done
Updating user to run AWstats report as .. .. done
Saving server details .. .. done
Updating Webmin user .. .. done
Applying web server configuration .. .. done
Re-loading Webmin .. .. done
All done
As you can see in the output, it does not show that it is updating the administrator group as in the web interface.
Comments
Submitted by JamieCameron on Sun, 07/24/2011 - 19:17 Comment #1
Unfortunately at the moment the API is not capable of doing a domain rename or group change in the same way the UI can. I have an open TODO list entry for this, but it isn't done yet ..
Submitted by JamieCameron on Sun, 07/24/2011 - 19:29 Comment #2
Unfortunately at the moment the API is not capable of doing a domain rename or group change in the same way the UI can. I have an open TODO list entry for this, but it isn't done yet ..
Submitted by kingrst on Mon, 07/25/2011 - 23:48 Comment #3
Thanks Jamie!
Can you update this report when you have more information regarding a fix?
Submitted by JamieCameron on Tue, 07/26/2011 - 11:51 Comment #4
Sure, will do ..
Submitted by JamieCameron on Sun, 08/30/2015 - 14:28 Comment #5
Good news - I finally got around to implementing this! The next Virtualmin release will contain a rename-domain API command.
Submitted by Issues on Sun, 09/13/2015 - 14:30 Comment #6
Automatically closed -- issue fixed for 2 weeks with no activity.
Submitted by Issues on Sun, 09/13/2015 - 14:30 Comment #6
Automatically closed -- issue fixed for 2 weeks with no activity.