Skip to main content
Solved

Freshservice API V2 issue with Get Requester ID


Forum|alt.badge.img

Hi 

I am in the process of upgrading my integration (using Make.com) with V2 of the Freshservice API.

V1 /api/requesters/[id]  worked without issue.

 

However, I’ve notived that /api/v2/requesters/[id] is not returning all users when requested.

 

Specifically, it seems to be problem when users who are also Agents, raise a ticket.

 

I believe the Requester ID and Agent ID will be the same. However, when I search on a Requester that is also an agent in V2, I get an error “You are not authorised”. It works fine with Requesters that are not agents.

Cheers

adbell

Best answer by mfedele

Hi @adbell 

 

The Agent who executes the API Call needs to have this role enabled to request Agents List :

 

 

View original
Did this topic help you find an answer to your question?

7 replies

SwathiRajan
Community Debut
  • Community Debut
  • 1 reply
  • March 14, 2023

Hey adbell,

We will have to check the roles. Could you please drop us an email - support@freshservice.com 

We will get this checked. 


mfedele
Skilled Expert
Forum|alt.badge.img+7
  • Skilled Expert
  • 14 replies
  • Answer
  • March 14, 2023

Hi @adbell 

 

The Agent who executes the API Call needs to have this role enabled to request Agents List :

 

 


Forum|alt.badge.img
  • Author
  • Contributor
  • 3 replies
  • March 14, 2023

Thanks Swathi and Mathieu

That makes sense. It would be great if I could still access the agents details like in like V1 (without authorisation for managing them) as I am just seeking the email address of the Requester (which are sometimes also Agents).

I don’t think I’ll be able to get manage agents access as it is a client site.

However, I will build some error handling logic in Make and swap to a Mapping Table if it is unable to access the details. So I have a better understanding of the problem and a solution. :)

Thanks again.

Adrian


Forum|alt.badge.img
  • Author
  • Contributor
  • 3 replies
  • March 27, 2023

Thanks again. I have a similar issue with Get Ticket and using the Get Ticket Comments via API.

Do you know if this also requires the Operational Admin to retrieve tickets?

Thanks again


Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14
adbell wrote:

Thanks again. I have a similar issue with Get Ticket and using the Get Ticket Comments via API.

Do you know if this also requires the Operational Admin to retrieve tickets?

Thanks again

You get the same info as the API agent do in web gui. 


Forum|alt.badge.img
  • Author
  • Contributor
  • 3 replies
  • March 27, 2023

Hi

I can view the tickets and comments without issue within the Freshservice Web Portal.

However, when using Make/Integromat (Get Ticket) to access the data from API V2,

I get the following message 

 


Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14

Hmm, I have always worked with a user that is admin 


Reply