Hide field for all the current logged in user

Shankar Manohar
Mega Guru

Hi All,

  Did any one encounter such scenario.. How does it work.. I am working on something like this..

I have a field in user table ( employee status).

1)This field should be visible for roles ITIL and HR. ( ACL should work here).

2) For the user who ever logs in.. he/she shouldn't see this field ( Even if having ITIL/HR Role)

3) Even if the logged in user is admin.. should not see this Employee Status field.

    How do we achieve this..

Rather simply put.. The user who ever logs in when he checks his profile.. he shouldn't see his/her Employee status field.

Thanks in Advance

Shan

1 ACCEPTED SOLUTION

Then your ACL would grant read access with the condition:



Sys ID | is NOT | javascript:gs.getUserID()



find_real_file.png



If the Sys ID of the current record is not the same as the user's Sys ID, they'll get read access.


View solution in original post

10 REPLIES 10

Thank you Shan.



You've made it clear who SHOULD NOT see the field and when, I'm just not clear who SHOULD see the field and when.


simply create an ui policy so in both case it will fulfill your requirement.


Shankar Manohar
Mega Guru

Dear Chuck,



    In other words, Admin should be able to see this field for other user records except his/her. ( ideally, the user if he is an admin shouldn't his employment status. Hence the reason to block this field info for him/her. But can access this field for other user records.)



Thanks


Shan


Then your ACL would grant read access with the condition:



Sys ID | is NOT | javascript:gs.getUserID()



find_real_file.png



If the Sys ID of the current record is not the same as the user's Sys ID, they'll get read access.


Perfect Chuck,



    That suits my requirement. Thanks once again.



Thanks


Shan