I'd have to agree with brother radiantmatrix here -- the security guard's job is to guard. She did her job, so I'm guessing it's more like a customer service issue.
You didn't say what happened after that, but I would hope she followed up with "Did you forget your pass?" and start the procedure to get someone authorized to vouch for you and let you in, and/or set you up with a temporary pass after confirming that you are authorized to enter this secure area.
Or you could have smiled and said, "You know what -- I'll just go back to my car and get my pass." She might even have let you in at that point. Or not.
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds