Create new user with password icinga2

Hello team ,

please provide us method to create user with password to icinga2 (Via cli)

best regards

edit this file and read the docs:

but if you mean an icingaweb2 user, thats another question

hello ,
yeah it is for an icingaweb2 user to access

you can’t do it via cli directly but you can use a restapi request.

curl -H “Accept: application/json” -u icingaweb2admin:somepassword “https://youricinga/icingaweb2/user/add?backend=icingaweb2” -F “user_name=newicingauser” -F “is_active=1” -F “password=test”

{“status”:“success”,“data”:{“message”:“User added successfully”}}