Get External id of user in Jira Data Center

For the users in cwd_user table in database, there is a column called “external_id” .
Are there any methods of classes (like ApplicationUser / UserUtil) to retrieve the “external_id” value for a user through a script?

Thanks!