How to get externalID in Jira Cloud

Hi
I’m syncing users with Azure AD, all works ok.

For some reason, I need to have the externalID in my Jira extension. Is there a way to get it using the Jira Cloud REST API?