Sandbox enabled on script include

pramodkumar
Tera Expert

Hi Everyone,

I see a new checkbox 'sandbox enabled' in script include after upgrading to Xanadu. Can anyone explain what is the use of this checkbox with an example?

 

Thanks!

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@pramodkumar 

The 'sandbox enabled' checkbox in ServiceNow's Xanadu release allows you to run scripts within a secure, restricted environment known as a sandbox. This sandbox limits the script's access to certain APIs and resources, enhancing security by preventing potentially harmful operations.

Example Use Case: Imagine you have a script include that processes user input from a client-side form. By enabling the 'sandbox enabled' checkbox, you ensure that this script runs in a controlled environment, reducing the risk of malicious code execution or unintended access to sensitive data.

More details here

Configuring Script sandbox property 

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

View solution in original post

6 REPLIES 6

Runjay Patel
Giga Sage

Hi @pramodkumar ,

 

check this link, it has detailed explanation.

 

https://www.servicenow.com/docs/bundle/xanadu-platform-security/page/administer/security/reference/r...

 

Accept the solution if it helped 

Ankur Bawiskar
Tera Patron
Tera Patron

@pramodkumar 

The 'sandbox enabled' checkbox in ServiceNow's Xanadu release allows you to run scripts within a secure, restricted environment known as a sandbox. This sandbox limits the script's access to certain APIs and resources, enhancing security by preventing potentially harmful operations.

Example Use Case: Imagine you have a script include that processes user input from a client-side form. By enabling the 'sandbox enabled' checkbox, you ensure that this script runs in a controlled environment, reducing the risk of malicious code execution or unintended access to sensitive data.

More details here

Configuring Script sandbox property 

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

@pramodkumar 

Hope you are doing good.

Did my reply answer your question?

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

No this does not answer the question. Both of the responses point to a url that is for the system property NOT the field on a script include that is called "Sandbox Enabled". I read your response and I don't understand, will setting that field on a specific script include disable the ability to insert or update from that script include?