How to use SNC.IdentificationEngineScriptableApi.identifyCI in scoped app

Ashish77
Tera Contributor

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

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

Hi,

Change your code to using the scoped API equivalent:

sn_cmdb.IdentificationEngine.identifyCI(input);

View solution in original post

2 REPLIES 2

Kieran Anson
Kilo Patron

Hi,

Change your code to using the scoped API equivalent:

sn_cmdb.IdentificationEngine.identifyCI(input);

Martin Grosskop
Tera Guru

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