Flag officer ranks include commodore, rear admiral, vice admiral, admiral, and fleet admiral. Flag Officers may command fleets of ships, serve in senior positions at Starfleet Academy, serve as commanding officer of a starbase, or head Starfleet divisions such as Security or Fleet Ops, among other duties.

The known* (canon) women Flag Officers in Starfleet.

Thanks to many contributors at Memory Alpha for the information, and TrekCore for the screencaps.

* Some women flag officers who appeared in the background may have been missed because they or their rank insignia were not clearly visible. There are also several flag officers mentioned by family name only whose gender is unknown.