Error - "ACL Exception Insert Failed due to security constraints"

Praful5
Kilo Explorer

Hi 

I am trying to Automate change creation in service now with ansible through REST API. I am using the ansible uri module with POST method. I am getting the below error:

 

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

        "content_type": "application/json;charset=UTF-8",

 

        "json": {

            "error": {

                "detail": "ACL Exception Insert Failed due to security constraints",

                "message": "Operation Failed"

            },

            "status": "failure"

 

Could anyone can please help me ??

 

 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

there is a CREATE acl on that table that is blocking the operation.

with which user you are testing this? admin or non-admin

if non-admin does that user have create Access on that table

check the above details

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

12 REPLIES 12

neeraja586
Tera Contributor

I have the same issue while integration change request table. Can any one mention  the roles .

Jude S
Tera Contributor

Hi.

Are you using Import Set API for your REST Inbound?

I came accross this issue for my Import Set API.

JudeS_0-1697495858348.png

 

This is because the user did not have access to the import set table. 

Solution is to give 'import_transformer' role to the integration user.

 

I hope this helps.
Thanks.
Jude.

Hello Jude, 
Thank you this was helpful.

Regards,
Vrushabh