Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Restricting the access of password to specific users

Natraj S
Tera Expert

We have an requirement to store the password in custom table field (A),

 

1.The password needs to be editable and viewable only to specific users.

2.Whenever the users try to view or edit the password field (A), the moment they click on the field or toggle the icon we have to make the reason field (B) visible and mandatory and this needs to be enabled for audit purpose, like who has viewed or modified the password and we have to get this details in the reporting as well.

 

If we have any OOB/custom solution to accomplish this requirement, kindly provide your thoughts here.

 

Thanks in Advance!

1 REPLY 1

Deepak Shaerma
Kilo Sage
Kilo Sage

Hi @Natraj S 

I think there is no out-of-the-box (OOB) form behavior for this Requirement. The standard "Lock/Unlock" icon on password fields does not support a "Force Reason" trigger natively. 

You have to implement a custom solution for this:

Happy to help! If this resolved your issue, kindly mark it as the correct answer and Helpful and close the thread so others can benefit too.

Warm Regards,

Deepak Sharma

Community Rising Star 2025