Cannot fetch ticket info via custom function

Cannot fetch ticket info via custom function

Hello!

I'm creating a custom function on a recently created department, but when i try to fetch the tickets details using the Zoho Desk API i get the following message:

  1. {"errorCode":"FORBIDDEN","message":"You are not authorized to access this resource."}
I checked the department configs and permissions, changed the department from private to public and it still wasn't able to fetch the ticket (i made sure the ID was correct and all the scopes were selected). I tried to fetch a ticket from another department and the code worked fine, just this department is blocking it. 

Is there a specific permission that i need to enable on the department so i can use custom functions to fetch records?