Visit the agent detail page in Freshdesk:



Append to the URL .xml / .json extension to get the user_id: