Is there a way we can access the external_id from SSO record of another user?

Thanks everyone for the inputs, we ended up doing this via custom user fields which gets synced from our application during login.