Access Control List read records Created By User

tharzarob
Kilo Explorer

How do I set the read ACL on a table to only allow users to read records that they have created?   I have been trying to add the following conditions without luck

Created By is javascript.gs.getUserName() OR Created By is empty

I am working in the Geneva instance.

1 ACCEPTED SOLUTION

I THOUGHT SO!!! t! It's not in the wiki, it's on the developer API site.



Best practice is to use conditions before scripts, so...



Created by | is | javascript:gs.getUserName()


View solution in original post

13 REPLIES 13

I was on THIS page which is supposed to have a breakdown of getUser methods.



Getting a User Object - ServiceNow Wiki


Oh yeah. I was confused, because my company uses email as the user ID.


Julian12_0-1683232672667.png

I'm getting unespected token return 😕

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hey Robert,



Let me know if that answered your question. If so, please mark it as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list. Thank you