It would be great if managers could achieve this without making several expensive mistakes in the process.
There is an AntiPattern to this:
Many managers don't have this skill. This often leads to downward spirals. Someone is placed in an assignment they are unsuited for. They are miserable, don't do well, and a transfer is viewed as a reward, so they are stuck there. Depending on the situation, the victim may remain in misery, get fired, change jobs, or even summon the effort to do well and get something else to work on. If this last happens, then the manager can say, "We really turned him around."
An example of LeadershipAntiPatterns.
How can you know if your people are really up to the assigned task?