nepotism
Nepotism is the practice of giving jobs or promotions to family members or friends. Nepotism is usually illegal, but it can sometimes be hard to fight because it's difficult to prove that someone was unfairly given a position.
The company is accused of nepotism because they gave the position to her son.
The politician is accused of nepotism because he's giving the jobs to his friends.