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

shubham23
Giga Contributor

Hi,

I am trying to upload an attachment in the incident table using API. But I am getting below error:

status: failure
The remote server returned an error: (403) Forbidden.
message: Operation Failed
detail: ACL Exception Insert Failed due to security constraints

I am using non-admin user and don't know which ACL rules operation should be applied to which table. So, that user can upload the attachments

Could anyone please help me ?.

Thanks!

1 ACCEPTED SOLUTION

shubham23
Giga Contributor

Working:
Added below ACL and now able to upload the attachment:

  • sys_attachment_doc (create)
  • sys_attachment (create)
  • ecc_queue (create)

For Downloading attachment provided below ACL:

  • sys_attachment_doc (read)
  • sys_attachment (read)
  • ecc_queue (read)

View solution in original post

15 REPLIES 15

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

Which incident table? Security Incident or normal incident?

Thanks,
Ashutosh

@Ashutosh Munot - Normal incident

HI,

Are you trying to create this attachment using API and from which scope.

 

You have to check ACL on sys_attachment table and the table Setting if that table is exposed to Web Service

find_real_file.png


Thanks,
Ashutosh

Hi Shubham,

this error occurs when that user doesn't have access to write or create on that table

Since that user is not able to create/edit table record attachment cannot be added.

please ensure this user has valid role that is present on table None Create & Write ACL

Once you give that non-admin user the proper role that user should be able to add attachment

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