No, the external_id is the id that is provided in the SSO payload from the SSO provider site. If you are using the WP Discourse plugin, there is a function that you can use for this:
WPDiscourse\Utilities\Utilities::get_discourse_user($user_id)
$user_id in the function call is the WordPress user_id.