I am trying to change an operator password with this JS code :
var resetPassword = NLWS.xtkOperator.ResetPassword("login123", "newpassword");
but I get Method 'ResetPassword' unknown in schema 'xtk:operator'.
Any clue why?
Thank you for your help,
Using the method HashPassword works :
And use the value to update the password column in the operator table.
Hi @roro_coeur ,
Are you using the loadLibrary to load the method implementation ? Seems like workflow could not reference the method implementation.
Please add below.
loadLibrary("namespace:xxx.js"); // replace the placeholder with the .js information.
Hello @roro_coeur ,
You don't have administrator access that is why the reset password function is not accessible by your login.
You can check the journal tab for more information. You will see an error which says "XTK-170020 Non authorized access to requested service (right 'admin' needed)."
Operators with admin access can run this code without any issues.