Verify if scope exists in ServiceNow instance
New article articles in ServiceNow Community
·
Dec 28, 2024
·
article
If you need to verify whether a scope belongs to ServiceNow, you can use the following script.
Example:
var scopeObj = new GlideScopeAPI();
var currScope = 'sn_grc_profiles';
gs.info(scopeObj.isServiceNowScope(currScope));
Note: This function does not check global scope or custom created scoped applications and it returns as false. And this is an undocumented API.
View original source
https://www.servicenow.com/community/service-operations-workspace/verify-if-scope-exists-in-servicenow-instance/ta-p/3136899
Ankur Bawiskar