As an engineer subjected to the staff security search each day I have to agree that the behaviour of the security staff is unacceptable. In the vast majority of my passages through security I witness unprofessional or rude behaviour. Good security staff are definitely in the minority. Some of my colleagues go through in pairs so one can stand witness for the other if required. That people resort to this is a clear indication of how poor security staff are and of the bad relations their behaviour has caused.
Most staff just bite their tongue and bear it. One who objected to being denied access through a door he had every right to use had his pass removed when he protested. There was absolutely no question of the security man being taken to task for being wrong.
When you do meet a team at the security point that are cheerful and professional you really noitice it.