Patronage

Form of favouritism in which a person is selected, regardless of qualifications or entitlement, for a job or government benefit because of affiliations or connections.
Teachers recruited based on their affiliation to a union.