https://help.id.me/hc/en-us/articles/8214940302999-Internal-...
That said, the IRS doesn't really want you on their sites if you don't have a US address. I struggled to get transcripts on the site (but they allow you to submit written requests for them). This is a reasonable thing for the IRS to implement given the significant interest in fraud from their systems from people overseas.
Except that US tax law also requires that all US persons, worldwide, to file US tax returns (note: this is a superset of US citizens).
So if the law applies to expats and to anyone who has ever applied for a green card even if denied or not used or not revoked, then the system needs to support worldwide access.
Your struggles were probably with the previous system, which only allowed creating an account with a US address. It did however allow placing an online request without an account for a transcript to be mailed to a foreign address. I did this successfully myself and received the mail in Canada.