- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2016 11:35 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2016 11:59 AM
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()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2016 11:40 AM
It should be
current.sys_created_by = gs.getUserName()
NOTE : In the below script box paste the script mentioned above.
http://wiki.servicenow.com/index.php?title=Using_Access_Control_Rules

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2016 11:53 AM
Thanks Abhinay.
It should be current.sys_created_by = gs.getUserName()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2016 11:42 AM
Use the conditions field rather than a script.
Condition: Created by | is (dynamic) | Me
No scripting required!
Using Filters and Breadcrumbs - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2016 11:44 AM
Created is a string field which store email address. Use this
current.sys_created_by == gs.getUser().getEmail()