To illustrate Len_B's information, CA is a ICBO U-code state (for now) and the Uniform Administrative Code sec 301 gives a description of when permits are required, including electrical permits. (Actually, it basically says that if the work is in the technical code (NEC) a permit is required, then the UAC lists a few exceptions.)