Verify if scope exists in ServiceNow instance
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2024 06:00 AM
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.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
0 REPLIES 0