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.

Alternative wait to hide HR Profile fields rather than read ACLs on all the fields

MK_SN
Tera Expert

Experts,

 

Is there any alternative way to hide all HR profile fields except a few like x1, x2, x3 etc. in HR Agent workspace rather writing an individual read ACLs for each fields? There are some 125+ odd fields just want to avoid 125+ read ACLs.

 

Thank you,

MK

1 ACCEPTED SOLUTION

MK_SN
Tera Expert

Thank you @KrishnaMohan and @Mdsaqib826  for the reply. After re-evaluating business requirement I only have to hide sn_hr_core_profile table fields which I did it by using one read ACL sn_hr_core_profile.* 

View solution in original post

3 REPLIES 3

KrishnaMohan
Giga Sage

Hi @MK_SN 

you can use only client script code ( UI policy, client script) to hide fields.

 

If this helped to answer your query, please mark it helpful & accept the solution.
Thanks!
Krishnamohan

Mdsaqib826
Tera Expert

Hello @MK_SN ,

 

Instead of creating 125+ field-level Read ACLs, you can create one scripted field-level Read ACL on the HR profile table and dynamically control which fields are allowed.

 

If this helped to answer your query, please mark it helpful & accept the solution.


Thanks
Mohammad Saqib Khan

 

MK_SN
Tera Expert

Thank you @KrishnaMohan and @Mdsaqib826  for the reply. After re-evaluating business requirement I only have to hide sn_hr_core_profile table fields which I did it by using one read ACL sn_hr_core_profile.*