It's better to add an option in user's privacy settings to let them choose who they want to show their joined groups to. 1) Nobody, private 2) Everybody 3) Follower only etc.