Updating room via API, We have ACL Exception error for some rooms.

Akshay03
Kilo Sage

While updating computer rooms with API, we encounter an error for certain room. It's important to note that we are employing a service account for these operations.

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

I have reviewed the ACL on "cmdb_ci_computer_room" and found that it has the creator role assigned to it. However, I suspect that this may not be the actual problem, considering that other rooms are being updated successfully. The issue seems to be specific to just one room.

Room's install status  :  In-use

1 ACCEPTED SOLUTION

@Akshay03 

seems some logic is restricting the update.

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

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Akshay03 

since you said it's happening with only that particular record.

Did you check the API user has write access to that field?

Is it working fine when you use admin credentials for that API?

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

The user has the ability to write/update rooms, just like they are updating other rooms in a similar manner. However, granting admin access to a service account is not possible.

@Akshay03 

don't grant admin access.

I just wanted to verify if everything is working fine for that record when admin is performing the action

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

Thank you for your response.

 

After reviewing the situation with administrative access, we did not encounter any problems when updating rooms using the administrative privileges.

Could you kindly provide me with the cause of this issue, as it appears to be specific to a particular room? Additionally, I would appreciate any suggestions or measures that can be taken to prevent this problem from occurring in the future.