How to get the agent info in Application. | Community
Skip to main content

How to get the agent info in Application.

  • February 7, 2022
  • 2 replies
  • 0 views

i am developing a zendesk application using Zendesk Application Framework. I want to get the agent data/agent id of the currently logged in agent for that instance of application in a application. how can i get it using client object.
in short what i want to is to fill the custom field along with the id of agent who filled it using Zendesk application.

2 replies

Chris124
  • February 7, 2022

Hi there,

If you're in support:

client.get('currentUser')

Is what you're looking for. This will return information on the user interacting with the app in Support. More details can be found here: https://developer.zendesk.com/api-reference/apps/apps-support-api/all_locations/#get-5

Hope this helps!


  • Author
  • February 7, 2022

Thank you so much.