Scripted Rest Resource Rules

< 1 min read

The below table shows the list of ServiceNow service catalog best practices that are checked by Quality Clouds.

See the Scripted REST API Best Practices for designing and implementing scripted rest APIs. 

DescriptionSeverityArea of impact
REST API Resource modifying data without Authentication checkHighSecurity
REST API Resource modifying data without Authentication check – No AuthorHighSecurity
GlideRecord API usage in Scripted REST API ResourceHighSecurity
Possible extra-sensitive PII usage in configuration element – GenderHighSecurity
Possible extra-sensitive PII usage in configuration element – ReligionHighSecurity
JavaScript – Avoid use of Eval functionHighSecurity
JavaScript – Avoid use of debugger statementsHighSecurity
JavaScript – Avoid use of Function ConstructorsHighSecurity
JavaScript – Avoid unrestricted targetOrigin on cross-domain messagingHighSecurity
Possible use of private dataWarningSecurity
Possible PII usage in configuration element – EmailWarningSecurity
Possible PII usage in configuration element – AddressWarningSecurity
Possible PII usage in configuration element – NationalityWarningSecurity
Possible PII usage in configuration element – PassportWarningSecurity
JavaScript – Avoid making connections on unsafe protocolsWarningSecurity
Scripted REST API Resource with hard-coded sys_idsMediumManageability
JavaScript – Use === comparisonWarningManageability
JavaScript – Optimize LoopsWarningPerformance
Modified Out of the Box ElementWarningScalability
Updated on March 21, 2025
Was it helpful ?