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

Do you know what ACL configuration need to change to grant non-itil users create change request?   The Azure DevOps Servicenow add-on managed to do this without massive change in ACL configuration.  

Hi Chito,

 For change task template Role required: itil, change_manager, or sn_change_write.

Users with the ITIL role can view the list of available standard changes and submit change requests.

 

Please mark if helpful to you!!

I granted the the user the sn_change_write role (not change_manager because it also holds the itil role) and it is still unsuccessful.  The main reason for avoiding the itil role is the license associated with it.  

Chito, did you ever get this to work with a new role?  I'm facing the same issue.

Hey!

The custom role to use with Change API should replicate "itil" role's permissions on tables in scope of Change Management:

Create/Read/Write: change_request, change_task, chg_mgt_worker

Read: chg_model, chg_model_condition_type, conflict, std_change_producer_version, std_change_template, task_ci, task_cmdb_ci_service