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

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

Hi, 

I tried changing the password but it saves the plain text. How could I obtain an encrypted password from service-now? Are there any api calls for getting/storing the encrypted password?

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Gomathi,



Any update on this?


Can you mark my answer as correct, helpful and hit like if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.



Regards


Ankur


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

Thank u So much