I did it earlier this year - took one out of a scrap 3-door and put it into our 5-door. It’s a bit of a fiddle on both, but much easier on the 3-door as there’s a lot more room.
Door trim off
Peel back vapour barrier
Unplug lock module electrical connector
Unhook inner door catch rod
Unhook and remove locking knob
Undo two bolts holding outer door handle and remove from module
Undo bolts holding module in place and remove
Swap over lock barrel
Reverse procedure with new module.
That’s how I remember it. Some long-reach needle nose pliers at various angles will help.