These things can happen if proper procedures are followed and there are rules governing the transfer. Otherwise if this is done against the interests of the employee it can always be challenged in a court of law.
Kindly refer the manual of rules and regulations applicable to your organization.
Regards