Hi,
I need to update/add user information (eg. department) using ruby command. I follow the guide in http://docs.opennebula.org/4.12/integration/system_interfaces/ruby.html and host hook script (host_error.rb)
In my script, i already done up to the initiate new client / authentication. After this, what is the API to update the user? The update will be for 1 user only as the script will be executed by providing the userid.
The manual way i do this is using oneuser command
oneuser update <user_id> <file> -a
the file content:
DEPARTMENT=IT