Hello,
Thanks for reaching out. Yes, your understanding of association between a Genesys agent and HRIS system is correct. The association is established through user email set up in HRIS system and that should match the email set up for the user in Genesys.
In regards to the externalId , it is stored in Genesys's internal store house. Once the integration for the user is established , all communication through Genesys API happens through the Genesys userId and reference to HRIS externalId is done through internal look up.
The only API route that provides visibility into externalId is /api/v2/workforcemanagement/agents/{agentId}/integrations/hris. The response will have associatedIntegrations and for each association there is an 'agentExternalId' field returned in the response. You can use that route to verify if expected association is established for a user, but there is not a route to look up by HRIS externalId at the moment. Hope this helps.
------------------------------
Krishna Raghuraman
Lead Software Engineer
------------------------------