
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2017 06:42 AM
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2017 07:16 AM
Then your ACL would grant read access with the condition:
Sys ID | is NOT | javascript:gs.getUserID()
If the Sys ID of the current record is not the same as the user's Sys ID, they'll get read access.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2017 06:48 AM
This sounds like you should simply remove the field from this particular form view. I'm not seeing a case where anyone (regardless of role) gets to see the field. Let me know if I missed a use case of someone actually needing to see the field on their profile.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2017 06:55 AM
Hi Shankar,
agreed with ctomasi .if you don't want to show that field to anyone even user is admin then simple remove that . right click >> configure>> form layout.
or you can write ui policy on it to hide it. don't put any condition in your ui policy .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2017 06:57 AM
I would only recommend a UI policy if the field were used in a client script somewhere. Otherwise, the user is going to see it for a split second and it disappears. They'll know it's there and crafty users can make it visible again from their browser. If it's not needed at all, take it off the form with Configure> Form Design or Configure> Form Layout.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2017 06:57 AM
Hi chuck,
Removing the field will not work for me here.. To counter all my 3 requirements. I believe below case should do.
I should hide the employee status in the User table for the logged in User.. ( This way, ITIL users wont be able to see that field in their profile.. Admins can not get to see this field in their profile but can see this field for other user records).
Hope I made it clear.
Thanks
Shan