Creating Standard Change using sn_chg_rest REST API scope

Chito
Kilo Explorer

Using the REST API api/sn_chg_rest/change/standard I am getting the following error. 

{
    "error": {
        "message": "Cannot convert null to an object.",
        "detail": "TypeError: Cannot convert null to an object. (sys_script_include.7b2c3918b713130096c3e4f6ee11a93d.script; line 19)"
    },
    "status": "failure"
}

If I call the script using user account with ITIL role its OK. 

Without using the ITIL role what permissions to which tables do I need to define?   I have so far given read,write,create permissions to a user defined role to tables - change_request, std_change_record_producer, std_change_template and std_change_producer_version

11 REPLIES 11

Victor Ogrizko
Tera Guru

Hello!

Check "read" ACLs on [std_change_record_producer] and parent tables. Make sure, what role you use for Change API have right to read not only record itself, but also all fields.

Basically create "std_change_record_producer.*" read ACL

Thanks Victor, that was exactly what I needed.