Understand ACL in Gliderecord/Gliderecordsecure

Ruchi Kumari1
Tera Expert

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? 

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Ruchi Kumari1 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Shivalika
Mega Sage

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. 

 

 

Article - https://www.servicenow.com/community/developer-blog/gliderecordsecure-gliderecord-vs-gliderecordsecu....

 

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

Prathamesh26
Tera Expert

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