Depends what kind of company the security gate is for really. I'm fairly sure that most companies reserve the right to refuse admission if a search (bag search) is refused. They may be able to pat you down too but they are not allowed to do a strip search or a DNA swab - the police are the only ones who can do this.