I would definately check with the AHJ... Where I am, unless it is a "permanently installed" appliance such as a dishwasher or a garburetor and the receptacle is intended for said appliance, you are NOT permitted to install a receptacle in a cabinet.. The exception to the rule I believe is if the receptacle is only energized when the cabinet door is FULLY open then it is allowed ( this is intended for those "appliance garages" you see in kitchens). Reason being its too easy for someone to mistakenly shove an appliance such as a toaster or in your case in a bathroom a hair dryer or curling iron thats still on into the cabinet, along with all sorts of other things (linens and other "spare parts"), close the door, heat builds and a fire starts.
A.D
Do you have a code article that prohibits this installation?
TKB