- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2018 03:33 PM
I have a read ACL for a field so two different roles can view it and others can't. I need to add 1 individual to view this field. Is there a way to do this in the ACL script area? I tried different answer = gs.getUser()...etc but came out with no luck.
Thanks in advance!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2018 03:45 PM
I think, this is more standard way. Tomorrow you may have additional users who would want access to that field. So instead of hardcoding one user, it is best practice to create a role and assign it to that user
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2018 04:15 PM
Please mark the response and close the thread if it answered your question.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2018 07:00 PM
Why create a role, instead create a group and use gs.getUser().isMemberOf('GroupName');
If in future more users needs access to this field, just add them to this group.
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2018 02:56 PM
And like others have said - this is not best practice because you never want to hard code a user in but I did figure something out using their sys_id:
if (gs.getUserID() == "fd42c5620fa8b500250a937f62050e53" || gs.hasRole("operations_support") || gs.hasRole("customer_service")){
answer = true;
}