Asia
ghulamiyat
Arabs of the Umayyad and Abbasid caliphatesBaghdad, Iraq
Historical recordScholarly source
“Discussing the (male-assigned) khanith, older mukhannathun and Egyptian khawalat, and the (female-assigned) ghulamiyat”
en.wikipedia.org
In brief Historian Everett Rowson lists ghulamiyat, who were assigned female, among the cross-gender roles of early Muslim societies. They dressed and acted in ways linked to men.
Keep in mind: A court and elite fashion described by outside writers; it may not reflect how the people themselves saw their gender.