HI Rickard
We have it also fully automated. We use the API for that.
Here is a snippet of how we do it via PowerShell as we run on Windows
Test if user has changed
$uri = ‘http://’+$ServerIP+’:1116’ + ‘/streams/$user-’+$user+’?embed=body&format=json’
$json = Invoke-RestMethod -Uri $uri -Credential $cred
$entries = $json.entries
$eventNum = $entries.positionEventNumber | measure -Maximum
if ($eventNum.Maximum -gt 0)
{“It is Done”}
Else {
#Reset password
$body = ‘“newPassword”:"’+$Password+’"’
$url2 = ‘http://’+$ServerIP+’:1116/users/’+$User+’/command/reset-password’
Invoke-RestMethod -Method POST -Uri $url2 -ContentType ‘application/json’ -Body “{$body}” -Credential $cred -OutFile “c:\cfn\log$User.txt”
}
}
Hope this help you on the right way
Chris