Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

cant create or update incident by API call

Enovella23
Tera Contributor

hi all im trying to update or create an incident record, using a non-admin user, i have grante to this user this roles

-itil

-snc.internal

-incident.write

but every time i try it i receive this message:

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

using admin user i can create but in a real life scenario i cant use this type of user

7 REPLIES 7

Chaitanya ILCR
Mega Patron

Hi @Enovella23 ,

use the access analyzer and check if anything is blocking the user from the operation.

if everything looks good also try giving rest_service role

if it a scripted rest api that you are trying to call check the ACL of that Scripted Rest and check if the user is meeting the criteria

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

i allready give rest role to the user but still getting that message

 

MURALIR20469232
Tera Guru

Hello @Enovella23,

 

Can you confirm that are you performing any integration since you have mentioned API call. If yes, please check the Service Account user whether Web Access is checked. So that, it will update. 

 

*************************************************************************************************************
If my post is useful, please indicate its helpfulness by selecting " Helpful."

 

Regards,

Murali.K.V.R

Enovella23_0-1764003793200.png

 

i have it like this and still receive the same answer from postman