make a field visible only for ITIL users

carlosromero
Giga Contributor

Hi there.

i have created a field u_onq_id     on the user table (sys_user) i need this field to be visible only for ITIL user i have been trying to used an UI policy but havent had luck. this is what i have tried:

find_real_file.png

but its not working. i have also tried an ACL and client script but not luck i will appreciate any help.

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

Hi,



Few things to point out in your script as mentioned below:



1) gs.getUser() is a server side function and cannot be used on client side i.e. it cannot be used in the UI Policy or client Scripts. So that is the main reason why your UI Policy was not working.



You can update your UI Policy on the User Table as per the script mentioned below in the screenshot:



find_real_file.png



I have tested this on my personal instance and it's working for me. Kindly test the same from your end also.



Hope this helps.Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

10 REPLIES 10

shloke04
Kilo Patron

Hi,



If your query is Resolved, Mark the answer as correct and close this thread for others.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke