- 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 12:09 PM
I was on THIS page which is supposed to have a breakdown of getUser methods.
Getting a User Object - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2016 11:57 AM
Oh yeah. I was confused, because my company uses email as the user ID.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2023 01:38 PM
I'm getting unespected token return 😕

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2016 06:03 PM
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