Issue with READ TABLE LEVEL ACL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 07:35 AM
Hello All,
I have an issue with ACL
Requirement is to create an Read ACL to show records which are opened by them , I have created an record type with read operation by Including this script in script box
answer = current.getValue('opened_by') === gs.getUserID() , I could see this "User not allowed to access table:"
can anyone help me here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 07:42 AM
Hi Michael,
Did you impersonate correct user and tried if working ?
Also you can use debug security to see what exactly is creating the issue.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 07:45 AM
yes I did impersonated correct user and even I have couple of records opened by me but list shows
Number of rows removed from this list by Security constraints: 100
In debug I could see this ACL is restricting the access
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 07:47 AM
Hello @Michael51
getValue will not work in the ACL Script :-
Write this Script:-
var value = current.opened_by;
if(gs.getUserID()==value){
answer=true;
}
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 07:56 AM
script is not required for this.
you can use condition field
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader