The design and the first experiments are described of a versatile cryogenic insert used for its electrical transport capabilities. The insert is designed for the cryomagnet installed on the DEIMOS beamline at the SOLEIL synchrotron dedicated to magnetic characterizations through X-ray absorption spectroscopy (XAS) measurements. This development was spurred by the multifunctional properties of novel materials such as multiferroics, in which, for example, the magnetic and electrical orders are intertwined and may be probed using XAS. The insert thus enables XAS toin situprobe this interplay. The implementation of redundant wiring and careful shielding also enables studies on operating electronic devices. Measurements on magnetic tunnel junctions illustrate the potential of the equipment toward XAS studies ofin operandoelectronic devices.