Creating Incident using API KEY

ItayG
Tera Contributor

I was tried to create an incident to my incident table, through this api route - /api/now/table/incident.
My api key is attached to an user with the following roles:

  • itil
  • security_admin
  • admin

Although this roles, I did not manage to create an incident and I keep getting 403 with the following response:

{
"error": {
"message": "Operation Failed",
"detail": "ACL Exception Insert Failed due to security constraints"
},
"status": "failure"
}

Additionally, I have created a create ACL for the incident table, for my custom role that inharite security_admin and admin, and still getting the same response.
 
Any insights I might have missed?
1 REPLY 1

josephmorsb
ServiceNow Employee
ServiceNow Employee

Hi There!

 

1. Is there a reason to give your integration user account both admin and security admin?  Those roles are not necessary in order to create a record in the incident table and sometimes security_admin especially has a reverse effect and can be limiting.  The default create ACL has no role specified so basically any authenticated user should have permission to create.

 

2. Does you integration user have the role snc_platform_rest_api_access?

 

3. For best practice, make sure your user has checked off "Web Service Access Only"