Password reset from Virtual agent ServiceNow in Azure AD

Dinesh90
Tera Contributor

Hi @Ambuj Tripathi ,
can you please help me on the step by step process to implement an integration b/w ServiceNow and Azure AD for password reset of a user using ServiceNow virtual agent.

I have a virtual agent using that an user will submit a INC for password reset and it should reset the user's password in AD and trigger an email to user with new password.

Can you please guide me on this.

1 ACCEPTED SOLUTION

Hello @Dinesh90  ,

 

Just wanted to check in to see if my earlier response helped you out or if you're still facing any issues. If your query is resolved, it would be great if you could mark my reply as helpful and accept it as the solution — that way it can also benefit others who come across the thread later.

 

Let me know if you need anything else!

 

Best regards,
Aniket Chavan
🏆 ServiceNow MVP 2025 | 🌟 ServiceNow Rising Star 2024

View solution in original post

20 REPLIES 20

@Dinesh90 

seems ok to me, how are you passing the new password to flow action?

Some issue on that side only how it's handled.

Did you check with Microsoft team?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@Ankur Bawiskar @Aniket Chavan :

Dinesh90_0-1753335474028.png

Dinesh90_1-1753335500453.png

we don't have a ENTRA team for this, we are doing kind of POC for demo and this is our teams' ENTRA account.
It's resetting the password in ENTRA but not able to login with neither a new password nor a old password after API hit.

@Dinesh90 Ohhkay, and what kind of script did you use to set the new password? I mean, is there anything else included along with the return statement? Right now, I can just see the "return" variable, but where did you declare that variable before returning it?

Also, I’m not completely sure, but maybe the issue is happening because you’ve checked the Force change password box. So first, try setting the new password value properly by assigning it to a variable, and then return that variable. Also, try unchecking the Force change password option for now and test the execution again.

@Aniket Chavan : password it is setting it correctly in the action logs, also tried force password = false but no luck..
it is setting the password in AD but not able to login with a new password..
not sure if there is anything with  the encryption ?

Dinesh90_0-1753339397068.png

 

@Dinesh90 you're trying to login with SSO right? or anything else?