Hide a custom field

osolaru063
Tera Contributor

As part of our integration of AD to ServiceNow, I  created a custom field on the sys_user table to assist with flagging down inactive users in Active Directory.  I keep on getting different solutions  on how to hide a custom field. What is the best practice in hiding a custom field from the users?

1 REPLY 1

Claude DAmico
Kilo Sage

This depends on how you want it hidden which probably explains why you have a number of different solutions. It being a custom field should have no bearing on the solution since the handling should be the same as an OOB field.

 

You could lock this down via a read ACL. This will be a strict can or cannot see across the board. A read ACL resolving to no access means can't be seen in lists or forms. OR, you could lock this down on the form only using a Client Script or UI Policy instead.

Claude E. D'Amico, III - CSA