Delete Ticket Comment API Can't Delete Other Agent Comments

Delete Ticket Comment API Can't Delete Other Agent Comments

I have a script to search for comments with a specific tag, then I want to delete that comment. It's a pretty basic script. My connection is using a generic "service account" to handle our functions, that account is a full admin and the connection has all the required API permissions. My problem is, the function cannot delete comments made by others, it gets "{"errorCode":"FORBIDDEN","message":"You are not authorized to access this resource."}". It can delete comments made by my service account. 

  1. deleteCommentURL = "https://desk.zoho.com/api/v1/tickets/" + TicketID + "/comments/" + commentID;
  2. deleteComment = invokeurl
  3. [
  4. url :deleteCommentURL
  5. type :DELETE
  6. connection:"saconnection"
  7. ];