The closest word I can think of is a sycophant but that’s a strong word. The word I’m thinking of has negative connotations and it’s for someone who is friends with different groups but only at a superficial level and isn’t necessarily honest about who all they’re friends with. This person would be seen as untrustworthy.