ISO is part of the UN, isn't it?
No.
One of the ways on to the ISO-3166-1 is via the UN Statistics Bureau.
In New York to be precise. It is the major way. There are other
ways, but these are exception. They always involve a member of the
iso 3166/MA, often the convener.
jaap