- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2022 09:54 AM
Hi Everyone,
I am trying to make use of SNC.IdentificationEngineScriptableApi.identifyCI function in Service Graph connector for SCCM "Before script" for one of our requirement. But I am getting error message "java.lang.SecurityException: Invalid object in scoped script: [object SNC]"
I tried prefixing global but still not working.
var output = global.SNC.IdentificationEngineScriptableApi.identifyCI(json.encode(payload));
Does anyone know how to use this API in scoped application ?
Thanks,
Ashish
Solved! Go to Solution.
- Labels:
-
Service Graph
-
Service Graph Connector

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2022 10:19 AM
Hi,
Change your code to using the scoped API equivalent:
sn_cmdb.IdentificationEngine.identifyCI(input);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2022 10:19 AM
Hi,
Change your code to using the scoped API equivalent:
sn_cmdb.IdentificationEngine.identifyCI(input);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2022 10:02 PM
Hi Ashish,
You probably should activate the Configuration Management for Scoped Apps (CMDB) plugin.
This plugin enables scoped apps access to the Identification Engine APIs
Regards
Martin