Regarding Iblees, he is only connected to the angels and numbered amongst them because of his long time of worship as is mentioned in the Nahj.  He was a slave of Allah for 6000 years. However, it is unknown whether that was in this world’s years or the Afterlife’s years.