How to hide the "Forgot password" link from the login screen of a specific user

MiY
Tera Contributor

Is it possible to hide the "Forgot password" link from the login screen of a specific user?
The idea is to not display the "Forgot password" link to user A, but to display it to user B.
If possible, please tell me how to do this.

1 ACCEPTED SOLUTION

Aniket Chavan
Tera Sage
Tera Sage

Hello @MiY ,

 

From what I understand, showing or hiding the "Forgot Password" link per user isn't something that's directly possible, because at that point (on the login screen), the system doesn't yet know who the user is — no login has happened, so there's no way to apply user-specific logic (like roles, group membership, etc.).

 

So technically, since there's no user context available on the login page, we can’t conditionally hide that link for a specific user.

 

That said, if your goal is to completely hide the "Forgot Password" link for everyone, that’s definitely possible. You just need to set the system property:
"glide.security.forgot_password.display.link" to "false".

 

This will hide the link globally for all users.

 

If your requirement is strict and only for certain users — in simple words, I think it's not possible to do.

 

🔹 Please mark Correct if this solves your query, and 👍 Helpful if you found the response valuable.

 

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@MiY 

but why?

not possible to hide/show for particular user because when somebody access that page you don't know or can't determine which user navigated to that page. it could be any user

set this property "glide.security.forgot_password.display.link" to false

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

Dnyaneshwaree
Mega Sage

Which login page you are refering for this? Is it display from any instance or any other site or portal like current servicenow community?

 

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

Aniket Chavan
Tera Sage
Tera Sage

Hello @MiY ,

 

From what I understand, showing or hiding the "Forgot Password" link per user isn't something that's directly possible, because at that point (on the login screen), the system doesn't yet know who the user is — no login has happened, so there's no way to apply user-specific logic (like roles, group membership, etc.).

 

So technically, since there's no user context available on the login page, we can’t conditionally hide that link for a specific user.

 

That said, if your goal is to completely hide the "Forgot Password" link for everyone, that’s definitely possible. You just need to set the system property:
"glide.security.forgot_password.display.link" to "false".

 

This will hide the link globally for all users.

 

If your requirement is strict and only for certain users — in simple words, I think it's not possible to do.

 

🔹 Please mark Correct if this solves your query, and 👍 Helpful if you found the response valuable.

 

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