When Dynamics AX is shifted from one Domain to Other domain you have to update its SID before you log into AX.
To check SID use below command:
"wmic useraccount get name,sid"
and upadate SID in User info Table.
To check SID use below command:
"wmic useraccount get name,sid"
and upadate SID in User info Table.