Think you will find it behind the glovebox, drop the glovebox out and look for the cover that comes out at the bottom, take that off and filter can be pulled down and out.
https://www.realoem.com/bmw/en/showparts?id=LM52-EUR-06-2009-E89-BMW-Z4_30i&diagId=64_1698