https://www.kubota.com/wp-content/uploads/2021/10/L4630_4610_Wiring_Diagram_2008.pdf
This diagram is for the 2008 model year, so it may not be exactly the same as your tractor if it is a different year. However, it should be similar enough to give you a good idea of how the electrical system is wired.
If you need more specific information, you can contact your local Kubota dealer. They should be able to provide you with a wiring diagram for your specific tractor model.