Understand ACL in Gliderecord/Gliderecordsecure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 01:35 AM
Hi There,
I have been trying to understand difference between GlideRecord and GlideRecordSecure .
I am aware that in GlideRecordSecure, ACL is enforced.
However, i want to understand it better how it works in backend.
I have a scenario as follows:
1. There is a read ACL on table1 for which access is role based. Available for Role1.
2. Now the current logged in user who doesnot have role1, will they get expected result if they use Gliderecord or GlideRecordSecure on table1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 01:41 AM
Response inline
2. Now the current logged in user who doesnot have role1, will they get expected result if they use Gliderecord or GlideRecordSecure on table1? -> If user doesn't satisfy ACL then GlideRecordSecure will block but user can still read if they use GlideRecord
good explanation here
GlideRecordSecure | GlideRecord vs GlideRecordSecure | When to use GlideRecordSecure
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 01:51 AM
Hello @Ruchi Kumari1
The GlideRecordSecure() checks with the most widely granted role as can read() - if Read required.
Can write if write required.
Like if there is an ACL - there must be a role that is granted widely to users to grant access - it checks with that. If that not found then it checks with others.
Goes like that for all the operations canRead, can write, can delete - whatever is required.
Servicenow reference - https://developer.servicenow.com/blog.do?p=/post/gliderecord-vs-gliderecordsecure/
Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket.
Regards,
Shivalika
My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194
My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2025 04:13 AM
Hello @Ruchi Kumari1
Please check below link once
Link - https://developer.servicenow.com/blog.do?p=/post/gliderecord-vs-gliderecordsecure/
Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this question to solved bucket.
Regards,
Prathamesh