¶1She, Inc. and Charlene and Emanuel Isaacs applied for a business license to operate a lingerie sales and modeling business in the City of Gainesville. After the city denied them a building permit on technical grounds, the Isaacs filed a petition for mandamus seeking to compel city officials to issue a building permit, certificate of occupancy, and business license. The trial court dismissed the petition and the Isaacs appeal. Because they failed to exhaust their administrative remedies, we affirm the trial court’s dismissal of the mandamus petition.
¶2Since the Isaacs appeal from a motion to dismiss, we must construe the pleadings in the light most favorable to them with all doubts resolved in their favor.
¶3Mandamus is an extraordinary remedy that is granted only when a petitioner has a clear legal right to the relief sought and no other adequate legal remedy.
¶4In this case, the city did not issue a business license to the Isaacs in 1996 because their application did not include the required certifi*202cate of occupancy. The Isaacs sought a certificate of occupancy, but could not obtain it without a building permit. After the city returned their business license application at the end of the year, the Isaacs sought a building permit, which was denied for technical reasons. The Isaacs never appealed the denial of their applications to the zoning board of adjustment, as provided in the city code.
¶5Judgment affirmed.
¶6See Alford v. Public Service Commission, 262 Ga. 386, n. 2 (418 SE2d 13) (1992).
¶7 See Inner Visions, Ltd. v. City of Smyrna, 260 Ga. 902, 903 (400 SE2d 915) (1991); see also Mayor of Savannah v. TWA, Inc., 233 Ga. 885, 886 (214 SE2d 370) (1975) (city must issue business licenses for adult bookstore and movie store when applicants had complied with all necessary requirements).
¶8Dougherty County v. Webb, 256 Ga. 474, 475-476 (350 SE2d 457) (1986).
¶9 Cf. Hixon v. Walker County, 266 Ga. 641 (468 SE2d 744) (1996) (landowners appealed planning director’s denial of building permit to county planning commission); Atlanta Board of Zoning Adjustment v. Midtown North, Ltd., 257 Ga. 496 (360 SE2d 569) (1987) (property owner appealed denial of building permit to Board of Zoning Adjustment).
¶10 See Thomas v. Madison County, 261 Ga. 265, 266 (404 SE2d 271) (1991) (mandamus properly denied when all administrative remedies not exhausted).