What API should I use to change the password?

web-app
Kilo Contributor

Hi All,

I am doing a project in college and I have developed a web-app,in which I have to add a module, to reset the password of the user in my web-app as well as in servicenow at a time.How shall I implement this? Kindly suggest me some some Service-Now APIs for this.

Thanks in Advance.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Gomathi,



you should check on the REST API Explorer and check the sys_user table.


you should be able to modify fields using the API with correct PUT/PATCH method.



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Naga Vignesh
Kilo Contributor

Hi,

 The above thread was useful. But is there any way to pre-encrypt the passwords when there is a patch request

pass ?sysparm_input_display_value=true along with url to encrypt your password. This works in the case of creation as well as patching.