Flying Monkeys are one of the Blind Bag characters in LEGO Dimensions 2: The Rise of Enoch, from the Wizard of Oz franchise.
The Wonderful Wizard of Oz
The Flying Monkeys would appear to whoever wields the Golden Cap that was made by Princess Gaylette to bind their servitude to it as their punishment for their pranks. The Golden Hat's magic must be used three times before it can be passed on to the next person. The Wicked Witch of the West came cross this hat and has used it to help her take over Winkie Country and repel the Wizard of Oz's army.
Following the melting of the Wicked Witch of the West, Dorothy claimed the Golden Hat and asked the Flying Monkeys to take them to the Emerald City to present proof that the Wicked Witch is dead.
As the Flying Monkeys can't leave the Land of Oz after the Wizard of Oz's balloon takes off without her, Dorothy used up a command. The final time she uses it was to cross the hill of the Hammerheads in order to get to Glinda's castle in Quadling Country. When Glinda uses the hat to have them take Scarecrow, Tin Man, and Cowardly Lion to their respectful places, she gives the Golden Hat to the Winged Monkeys to destroy it so that they will be free of it's enchantment.
The Wizard of Oz (film)
In the film, one Flying Monkey was seen with the Wicked Witch of the West as she plans to obtain the ruby slippers that Dorothy wears.
When the Wizard of Oz sends Dorothy Gale, Scarecrow, Tin Man, and Cowardly Lion to bring him the broomstick of the Wicked Witch of the West, the Flying Monkeys are dispatched to bring Dorothy and Toto to them.
The winged monkeys are only affected by that their master, the Wicked Witch, witnessed the disappearing of Dorothy Gale and her companions via the vortex and battle Gandalf, Batman and Wyldstyle. Shortly after Wicked Witch melted at the end of Follow the LEGO Brick Road, it is implied by the time of Once Upon A Time Machine in the West they are later recruited as part of Lord Vortech's Army as they are seen as one of the enemies that have invaded 1885 Hill Valley.