How to reset the password of a local account using the REST API?

Ingrid de Cerqu
Tera Contributor

We have a local user, with Web service access only, that is used to create incidents in our instance using the ServiceNow REST API.

Due to security policies, we need to change the password for this user every 3 months.
An because the user has "Web service access only", we cannot login to our instance as the user to change the password.

We then thought that this could done, by resetting the password using the REST API.
But we can't get this to work, as the password value we set is seen in the user record XML exactly as we write it, without the hash encryption.

I have found these articles, but they did not help much:

  • https://stackoverflow.com/questions/50833958/how-do-i-use-password-reset-rest-apis-on-service-now
  • https://community.servicenow.com/community?id=community_question&sys_id=11b54321db1cdbc01dcaf3231f96191d

I think maybe it has to do with we not being able to chose our own passwords anymore, since we upgraded to San Diego:

find_real_file.png

Does anybody have an idea on how we could solve this?

1 REPLY 1

Meloper
Kilo Sage

Hi, did you find out? 🙂