In the Dhammapada, is the chapter called 'The Just', which states:
He who does not judge others arbitrarily, but passes judgment impartially according to the truth, that sagacious man is a guardian of law and is called just.
Your friend is caught in the cronyism of unjust, unethical & non-impartial people. This is very common. Your friend should look for a new job in an ethical workplace.
The Buddha taught the world has many defiled unethical people. It is not a matter of your friend not being good at making friends because true friends don't collectively conspire against individuals.
Generally, befriending such people requires the diminution of one's ethical values.
In the Sigalovada SuttamSutta, it is taught in life there are true friends & false friends. We should try to associate with good people & good friends (even though they can be difficult to find).