In England, some electrical jobs are DIY-legal; others need Building Regulations sign-off under Part P.
Part P of the Building Regulations makes certain electrical work in dwellings a legal requirement to notify, not optional.
Notifiable work must be reported to Building Control, or carried out and certified by a registered competent person, before it is legal to leave in place.
Notifiable electrical work must be certified through Building Control or a competent person scheme to be legally compliant.
Uncertified notifiable electrical work is a breach of the Building Regulations and the council can take enforcement action.
Scotland and Northern Ireland have their own legal building control systems, separate from England and Wales's Part P.