Depending on the country of origin and the length of stay, there are two different procedures.
The first regards EU Phd Students (any duration) and Extra EU PhD students who are planning to stay staying less than 90 days.
The second concerns Extra EU PhD students staying more than 90 days.
Applying PhD students will remain registered only at the university of origin, sub condition to attend courses based on the availability of each professor/course