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.

How to show field for particular user?

Sid_Takali
Kilo Patron

Hi Team,

If we have a field 'Security number' for each user , what will be your approach for making it visible only for that particular user?

1 ACCEPTED SOLUTION

Peter Bodelier
Giga Sage

Hi @Sid_Takali,

 

I guess that security number is stored on the sys_user record?

If so, create a field level read ACL restricted to the logged in user for that record.

 

So, ACL: sys_user.u_security_number (Or your field name), Read with script:

answer = current.getUniqueValue() == gs.getUserID();


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

View solution in original post

5 REPLIES 5

@Peter Bodelier oh yeah right !Good one peter ! 

 

@Sid_Takali please go with ACL as its a confidential field