Finally i found a solution last year:
To Change the association
update mocenduserlineappearancemap set fkepasdevicenumplanmap=(select pkid from epasdevicenumplanmap where numplanindex=2 and fkepasdevice= (select fkepasdevice from epasenduserdevicemap where fkenduser=(select pkid from enduser where userid='<Username>')))
This can be used if a user has only 1 device with 2 lines associated.
User must be associated inside the enduser.
Cheers