Tons of times...
...I once stayed at an HI express in Moncton NB where u had to bring ID for b'fast since the local construction crews had been pillaging the b'fast for the last 10 days.
The other place i saw it was at the westin in BKK where the unbelievably polite desk agent wouldnt ask your name and room number...i was told lots of the offices around suhkumvit had workers who would pop in for a coffee and snacks...how did they know...these folks would have coffee and food in hand as they left the building...so i think this is pretty common.