Yes, they were wanded and passed though metal detectors. Metal detectors won't stop somebody from getting through with a tiny glass needle full of some potent toxin or biological agent and sticking the President with it. A special protocol MUST be observed regarding people coming withing physical-contact distance of the President.
But the suicide assassins are all Obama’s friends. A kind of built-in security. His opponents are not insane.