A friend of mine, who I have considered to be a real good electrician, who has worked with me for about 10 years (and no longer does) now works for a car dealership, this car dealership wants to install some receptacles outdoors in the lot on some pedestals,, the dealership has a 5000$ estimate from a local electrician and my friend is telling me he can buy all the material for under 1000$, he is wanting to tell the GM he can do this for the company to save them money, and they can just continue to pay him his hourly wage, it would involve running a conduit from an existing panel to the pedestals which would have an enclosure with a couple breakers and receptacles, hes wanting to know if there's any codes against him installing these as hes not a licenced electrician
there are no codes that govern who can do work. the codes only cover how the work is executed.
there are laws requiring permits, inspections, and often licenses to do electrical work.
as others have mentioned, this varies from place to place.
the reality is that a lot of unpermitted and uninspected and unlicensed electrical work goes on and it is not like there are buildings burning down or exploding left and right because of the lack or permits, inspections, or licenses.
and there is plenty of shoddy work where the proper permits, inspections, and licenses were in place.
chances are he and his employer would get away with it if he went ahead.
my personal opinion is your best bet for you is to just stay out of it and not be giving him advice on such things.