I searched and only found a way to add a list of users and is the following:
for USER in $USERLIST
do
$SPLUNK_HOME/bin/splunk add user ${USER}@example.org -password jibberish
done
Is there any way to add something more like a command that can force the password change for when users log in for the first time?
Hi,
depending on where you want to do the user cration, the REST API is handy.
Please refer to http://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTaccess#authentication.2Fusers and https://answers.splunk.com/answers/186077/can-we-create-a-user-with-splunk-rest-api-access.html