I didn't get in trouble. Others got in trouble for me.
I did work for defence contractors in Canada. This had considerable security implications. In both directions.
Story 1
We had contracts with numerous entities in the NATO/NORAD sphere, so I had clearances for BritFor, several US three letter agencies, and others. Once I reached the point of having three clearances, when they bid on a job that required four clearances, it was easier for them to clear me for a fourth clearance than to get the guy with two clearances up to four. And once I had four, when the next contract that required five was being bid, I was the obvious candidate for it, etc.
On the one hand, once my clearances reached a certain level, it was an ego boost to be able to flash my ID and be waved through customs. Unfortunately, that meant that I inevitably became the company mule for co-workers who couldn't get such clearances when entering the country. Or who couldn't enter the country at all because they weren't wanted there.
Or in some cases, they were wanted there. A little too wanted, perhaps. In the "their picture is on the post office walls there" sense.
One co-worker (call him Jim) was an absolutely brilliant engineer, and had designed a magnificent [redacted] that the US wanted for their aircraft carriers. And so they bought them, installed them on several, and were very happy. Except for one carrier, which was reporting problems with it. The carrier was heading to Norfolk for routine maintenance, and while there, they wanted us to debug the issues they'd reported. When Jim was told he was flying to the US on Thursday, he casually mentioned that he'd moved to Canada years ago because he disagreed with the US tax policy down there. As in, he disagreed that he should pay taxes. So he simply hadn't. They'd noticed, and had an outstanding warrant on him. And so, I got to to fly down, go onto the carrier to service the equipment we'd sold them that I'd never seen before, with two USN and/or one Marine monitor hanging over me, watching me every second (yes, including in the bathroom).
No pressure there. Not at all.
Story 2
We had an Azerbaijani co-worker who was a rather, um, devout Muslim. He was devout in the sense that he left work early every Friday afternoon to drive down to the Queen's Park legislature building, take out the sword that he carried in his trunk at all times and wave it in protest, while burning Salmon Rushdie in effigy, and demanding Canada condemn the US for not extraditing him to Iran.
One weekend, a device needed to be sent to our California offices, and they sent him to deliver it. It was a long weekend, and on Tuesday morning, we got calls from California asking where it was. We backtracked his steps, and yes, he'd picked up the equipment and the customs paperwork from shipping, and taken a cab to the airport. But he never boarded his flight. Where was he?
Investigation found that when he'd tried to board and been questioned about the part (which admittedly was very suspicious looking), he'd calmly pulled out the customs paperwork and shown his ID proving he was cleared to carry it, and there was no danger, and that was the end of it.
No, wait. He didn't do that. He did, what's that word? Opposite? Yes, he did the opposite of that.
I should mention he closely resembled what is now the "Muslim Rage Boy" meme. He never blinked, and appeared to be glaring all the time. He was also very shouty. This tended to make people unfamiliar with him rather nervous. When the airport official casually questioned him about the bomb-looking device he wanted to take aboard the plane, instead of showing the paperwork, he started screaming about the Great Satan. Details were sketchy, as his English was poor to begin with, and the more agitated he got (and he was very agitated), the less he used it. So there's no record of what he was actually shouting about, as no one understood him.
The airport detained him, found his paperwork, and called our office. By that time, it had closed for the long weekend. Then they called his home, but his wife wasn't allowed to answer the phone without him present, apparently.
All righty then, I said. Where is he now, then?
Oh, you've still got him?
Yes, he'd been in lockup for over 72 hours. The airport didn't know whether to turn him over to the cops, the RCMP, or us. They decided to wait for us to see if he really was one of ours or not (sadly, he was). And so, I found myself on another flight playing mule two hours later.
I have more than a dozen stories like the above, but most of them can't be made public without being so redacted as to be incoherent.
Story 3
Once the wall fell, and peace broke out in Europe, I left the world of defence (read: contracts dried up) and started working in finance. I did trading floors, and routinely went to the US to train people and install hardware. It reached the point point where the US customs agents knew me by name. It became a matter of rote. Where am I going? Chicago/NYC/etc. Am I going for work or pleasure? Work. What's the nature of the work? Training. Why can't this work be done by an American down there? It will be, once they're trained. How long will you be staying? Until next Wednesday. What's that thing I'm carrying? A tech widget for a trading floor; here's the paperwork. Fine sir, everything is in order, enjoy your flight.
A co-worker with the same job had... less luck getting past customs. The fact that he always wore black t-shirts with the anarchy symbol, "F**K the Rich", or openly anti-American slogans didn't help, although it did set the tone. Where are you going? Can't you f*cktards read? It says right on my ticket I'm going to NYC, dickwad. Work or pleasure? Work, obviously, there's no pleasure going to your shithole country. What's the nature of your work? Training some drooling morons in NYC so they don't end up in go-nowhere jobs like being customs agents.
Oddly enough, he didn't make most of his flights. In many cases, they didn't even get to the end of the questionaire, they terminated it early. In a few cases, he not only didn't get on the flight, he was detained by security.
Our boss was mystified. He and I had the same paperwork, citizenship, and credentials, yet he was always having problems, but I never did. I must just be lucky, the bank concluded. Yes, that must be it.
And, as a result, I ended up flying a lot more, because my co-worker was always getting detained, unexpectedly™.