The Now Platform® Washington DC release is live. Watch now!

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TechNow Ep 15 | GlideRecordSecure

Chuck Tomasi
ServiceNow Employee
ServiceNow Employee

expert-logo-2.png

Chuck and Andrew cover the GlideRecordSecure class, compare it to GlideRecord, including the when, why, and how to use it. Let your scripts take advantage of ServiceNow's security.

Originally aired June 20, 2014   (Reposted June 17, 2016)
(Be sure to change your YouTube Setting to 720HD)

Have your questions ready to post below on this discussion page.

And Please Let our Expert Know how they've helped! Comment Below!

Like, Share, Mark Helpful. 


Featured Experts

find_real_file.pngChuck Tomasi is a Platform Architect for ServiceNow. He is a computer science major with over 30 years of IT experience. As a former ServiceNow customer, Chuck won the first Innovation of the Year Award at Knowledge 10. Since joining ServiceNow in 2010 as a Technical Consultant, he has done many large scale ITSM implementations and custom applications, acted as an adjunct instructor for Education Services, created and lead the Technical Best Practices program, and co-hosts the ServiceNow series "TechNow".

 

find_real_file.pngAndrew Kincaid is a Sr. Software Engineer for ServiceNow. His extensive platform knowledge extends back to 2009 as a customer, Technical Consultant, and Developer.

 

 


1 REPLY 1

Swarup Patra
Tera Contributor

GlideRecordSecure and GlideRecord are two classes in ServiceNow that are used to perform database operations. Here's a summary of their differences and usage:

- GlideRecord:
- It is a class that is used for database operations in ServiceNow.
- It allows you to perform any SQL operation against your database.
- It does not enforce any security (ACLs) on the records that are being accessed.

- GlideRecordSecure:
- It is similar to GlideRecord but it enforces Access Control rules.
- It is used when you want to ensure that your script respects the Access Control rules defined in your instance.
- It is recommended to use GlideRecordSecure in most cases to prevent unauthorized access to data.

- When to use GlideRecordSecure:
- When you want to ensure that your script respects the Access Control rules.
- When you are dealing with sensitive data that should not be accessed without proper permissions.

- How to use GlideRecordSecure:
- The usage is similar to GlideRecord. You create a new instance of the class, specify the table you want to work with, and then use the methods provided by the class to perform operations.
- Example:

var gr = new GlideRecordSecure('incident');
gr.addQuery('priority', 1);
gr.query();
while(gr.next()) {
// your code here
}


- Why to use GlideRecordSecure:
- To prevent unauthorized access to data.
- To ensure that your scripts respect the Access Control rules defined in your instance.

- Chuck and Andrew's coverage:
- They discussed the differences between GlideRecord and GlideRecordSecure.
- They emphasized the importance of using GlideRecordSecure to ensure data security.
- They provided examples and scenarios where GlideRecordSecure should be used.


nowKB.com
If you want to know any information about Service Now . Visit to https://nowkb.com/home